namespace promises
The timers/promises API provides an alternative set of timer functions
that return Promise objects. The API is accessible via
require('node:timers/promises').
import {
setTimeout,
setImmediate,
setInterval,
} from 'node:timers/promises';
Functions #
f
f
promises.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
Interfaces #
I
Variables #
v