Skip to content

@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 โ€‹

ParameterType
msnumber
signal?AbortSignal

Returns โ€‹

Promise<SleepOutcome>

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub