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
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<void
>