Skip to main content
Module

x/dpp_vim/deps.ts>fn.timer_pause

Dark powered plugin manager for Vim/neovim
Latest
function fn.timer_pause
import { fn } from "https://deno.land/x/dpp_vim@v0.2.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<void>