"quickjs:timers" (namespace)
[Symbol.toStringTag]: "Timer";
};
func: (...args: any) => any,
delay: number,
}
"quickjs:timers".Timer (exported type)
[Symbol.toStringTag]: "Timer";
};
"quickjs:timers".setTimeout (exported function)
Call the function func after delay ms. Return a handle to the timer.
"quickjs:timers".clearTimeout (exported function)
Cancel a timer.
"quickjs:timers".setInterval (exported function)
Call the function func repeatedly, with delay ms between each call. Return a handle to the timer.
"quickjs:timers".clearInterval (exported function)
Cancel an interval timer.
"quickjs:timers".sleepAsync (exported function)
Asynchronous sleep. Returns a Promise that resolves after delay_ms
milliseconds. Intended for use with await.
Timer (type)
An opaque timer handle returned by setTimeout/setInterval
setTimeout (value)
Call the function func after delay ms. Return a handle to the timer.
clearTimeout (value)
Cancel a timer.
setInterval (value)
Call the function func repeatedly, with delay ms between each call. Return a handle to the timer.
clearInterval (value)
Cancel an interval timer.