@lelantos-org/sdk / internal / sleep
Function: sleep()
ts
function sleep(ms, signal?): Promise<SleepOutcome>;Defined in: @lelantos-org/sdk/dist/core/async.d.ts:7
Sleep, distinguishing a completed wait from an aborted one so callers do not report a timeout when the user cancelled.
Parameters
| Parameter | Type |
|---|---|
ms | number |
signal? | AbortSignal |
Returns
Promise<SleepOutcome>