WaitUntilAsync(DateTimeOffset, CancellationToken)
public Task WaitUntilAsync(DateTimeOffset dueTime, CancellationToken cancellationToken = default(CancellationToken)) Waits for successful completion, and requests durable cancellation of the task once
dueTime passes. Parameters
dueTimeDateTimeOffset- The time at which to request cancellation. A time which has passed times out promptly.
cancellationTokenCancellationToken- A token which abandons the wait. It doesn't cancel the task.
Returns
An operation which completes once the task is terminal.
Exceptions
System.ArgumentOutOfRangeException- Outside a durable execution, the time until
dueTimeexceeds the longest timer interval whichSystem.Threading.CancellationTokenSource.CancelAfteraccepts. System.TimeoutException- The due time passed, and the task ended canceled.
