Method Delay
Delay(TimeSpan, CancellationToken?)
Waits until the specified amount of time has passed.
public static Task Delay(TimeSpan delay, CancellationToken? cancellationToken = null)
Parameters
delayTimeSpanHow long to wait.
cancellationTokenCancellationToken?A cancellation token that should be used to cancel the work.