Function: sleep()
Documentation / @wtf/platform / timers / sleep
function sleep( ms, __namedParameters, signal?): Promise<void>;Defined in: packages/platform/src/timers.ts:42
Waits ms milliseconds, by the platform’s timers, or rejects with the reason of the signal
that aborts it, its timer stopped: await sleep(1000, platform, signal).
Parameters
| Parameter | Type |
|---|---|
ms | number |
__namedParameters | Timers |
signal? | AbortSignal |
Returns
Promise<void>
