Usage in Deno
import * as mod from "node:timers/promises";
The timers/promises
API provides an alternative set of timer functions
that return Promise
objects. The API is accessible via import timersPromises from 'node:timers/promises'
.
import {
setTimeout,
setImmediate,
setInterval,
} from 'node:timers/promises';
f
setImmediate
No documentation available
f
setInterval
Returns an async iterator that generates values in an interval of delay
ms.
If ref
is true
, you need to call next()
of async iterator explicitly
or implicitly to keep the event loop alive.
f
setTimeout
No documentation available
v
scheduler
No documentation available