lifecycle/f_sleep library

Functions

fsleep(dynamic cancellationTokenOrExecutionContext, Duration? duration) Future<void>
Provide a "sleeping" Promise that completes via timeout or cancellationToken @param cancellationToken The cancellation token to cancel "sleeping" @param ms Timeout delay in milliseconds. If ommited, the "sleeping" Promise will sleep infinitely and wait for cancellation token activation