Interface ITimeAwaiter
An interface for awaiting a specific amount of time.
Namespace: Unity.Cloud.Common
Assembly: Unity.Cloud.Common.dll
Syntax
public interface ITimeAwaiter
Methods
AwaitTimeAsync(TimeSpan, CancellationToken)
Awaits a specified amount of time.
Declaration
Task AwaitTimeAsync(TimeSpan delay, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | delay | The amount of time to wait. |
| CancellationToken | cancellationToken | The cancellation token for the operation. |
Returns
| Type | Description |
|---|---|
| Task | A Task for the wait operation. |