Skip to content

CtxTimers

Defined in: core/define.ts:84

after(name, ms, action, input?, options?): void

Defined in: core/define.ts:91

Schedules the action action (normally internal: true) to run ms after the current entry's time. Reusing name replaces the timer. With { visible: true } its deadline appears in meta.timers[name], so clients can show a countdown (the action and input stay private).

string

number

string

Json

boolean

void


cancel(name): void

Defined in: core/define.ts:98

string

void


deadline(name): number | null

Defined in: core/define.ts:101

The deadline (epoch ms) of timer name, or null.

string

number | null


has(name): boolean

Defined in: core/define.ts:99

string

boolean