Method WaitAsync
WaitAsync(CancellationToken)
Asynchronously waits before another attempt.
Declaration
public ValueTask WaitAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | A token that cancels the wait. |
Returns
| Type | Description |
|---|---|
| ValueTask | A task that completes when the wait is over. |
Remarks
The wait is the delay, or the time left until the time limit passes if that is shorter, rounded up to whole milliseconds. If the time limit has passed, the returned task has already completed.
Exceptions
| Type | Condition |
|---|---|
| OperationCanceledException |
|