Skip to main content
Module

x/ddc_vim/deps.ts>fn.timer_pause

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.timer_pause
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { timer_pause } = fn;

Pause or unpause a timer. A paused timer does not invoke its callback when its time expires. Unpausing a timer may cause the callback to be invoked almost immediately if enough time has passed. Pausing a timer is useful to avoid the callback to be called for a short time. If {paused} evaluates to a non-zero Number or a non-empty String, then the timer is paused, otherwise it is unpaused. See |non-zero-arg|. Can also be used as a |method|: GetTimer()->timer_pause(1) {only available when compiled with the |+timers| feature}

Parameters

denops: Denops
timer: unknown
paused: unknown

Returns

Promise<unknown>