@lelantos-org/sdk / core / sleep
Function: sleep() โ
ts
function sleep(ms, signal?): Promise<SleepOutcome>;Defined in: @lelantos-org/sdk/dist/core/async.d.ts:8
Sleep, distinguishing a completed wait from an aborted one. Callers that cannot tell the two apart end up reporting a timeout when the user cancelled.
Parameters โ
| Parameter | Type |
|---|---|
ms | number |
signal? | AbortSignal |
Returns โ
Promise<SleepOutcome>