Interface ITaskDelayer
Interface for classes that delay tasks.
Namespace: Tableau.Migration
Assembly: Tableau.Migration.dll
Syntax
public interface ITaskDelayer
Methods
DelayAsync(TimeSpan, CancellationToken)
Creates a Task that will complete after a time delay.
Declaration
Task DelayAsync(TimeSpan delay, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time span to wait before completing the returned Task |
CancellationToken | cancel | The cancellation token that will be checked prior to completing the returned Task |
Returns
Type | Description |
---|---|
Task | A Task that represents the time delay |