import { setTimeout,} from 'timers/promises';const res = await setTimeout(100, 'result');console.log(res); // Prints 'result' Copy
import { setTimeout,} from 'timers/promises';const res = await setTimeout(100, 'result');console.log(res); // Prints 'result'
v15.0.0
Optional
The number of milliseconds to wait before fulfilling the promise.
A value with which the promise is fulfilled.
Generated using TypeDoc
Since
v15.0.0