Usage
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 viarequire('node:timers/promises')
.
import { setTimeout, setImmediate, setInterval, } from '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
I
Scheduler
No documentation available
v
scheduler
No documentation available