Function: delay()
function delay(
ms: number,
token?: CancellationToken,
runtime?: CancellationTokenRuntime
): Promise<void>;
Defined in: utils/app/async/cancellationToken.ts:156
Delay with cancellation support
Parametersβ
msβ
number
Milliseconds to wait.
token?β
Optional cancellation token.
runtime?β
CancellationTokenRuntime = ...
Returnsβ
Promise<void>
Promise that resolves after the delay or rejects when cancelled.