Function: delay()
delay(
timeout
,options?
):Promise
<void
>
Defined in: coreUtils/async.ts:67
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
Parameter | Type |
---|---|
|
|
| { |
|
|
Returns
Promise
<void
>