delay
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / utils/app/async/cancellationToken / delay
Function: delay()
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.