Skip to main content

Function: delay()

delay(timeout, options?): Promise<void>

Waits a specified timeout in milliseconds the resolves the result promise.

Can be cancelled via specified AbortSignal, in which case the promise will be rejected with abort signal reason (an error with name === "AbortError").

Parameters

ParameterType

timeout

number

options?

object

options.signal?

AbortSignal

Returns

Promise<void>

Defined in

coreUtils/async.ts:67