Interface IMultipleTaskSource<T>
Represents a source for starting and awaiting for multiple tasks at once.
Namespace: Responsible.Utilities
Assembly: Responsible.dll
Syntax
public interface IMultipleTaskSource<T>
Type Parameters
| Name | Description |
|---|---|
| T | Type of the tasks that the returned awaiter yields. |
Remarks
Intended only for internal use, but is public, because it's visible from other interfaces.
Methods
Start(CancellationToken)
Creates a IMultipleTaskAwaiter<T> which can be used to await for the deferred tasks this source represents, in the order they complete in.
Declaration
IMultipleTaskAwaiter<T> Start(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | Cancellation token passed to all the tasks started by this source. |
Returns
| Type | Description |
|---|---|
| IMultipleTaskAwaiter<T> | A multiple task awaiter for the deferred tasks in this source. |