Skip to main content
Module

x/denops_std/function/mod.ts>timer_info

📚 Standard module for denops.vim
Go to Latest
function timer_info
import { timer_info } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return a list with information about timers. When {id} is given only information about this timer is returned. When timer {id} does not exist an empty list is returned. When {id} is omitted information about all timers is returned.

For each timer the information is stored in a Dictionary with these items: "id" the timer ID "time" time the timer was started with "remaining" time until the timer fires "repeat" number of times the timer will still fire; -1 means forever "callback" the callback "paused" 1 if the timer is paused, 0 otherwise

Can also be used as a method:

GetTimer()->timer_info()

only available when compiled with the +timers feature

Parameters

denops: Denops
optional
id: unknown

Returns

Promise<unknown[]>