sleep
function sleep(ms, signal?): Promise<void>;Defined in: core/src/retry.ts:75
A sleep that wakes early when the caller aborts, and rejects with the abort reason rather than resolving into work nobody wants any more.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ms |
number |
signal? |
AbortSignal |
Returns
Section titled “Returns”Promise<void>