Struct TaskCompletionPipe.Consumer<T>
Represents asynchronous consumer for the pipe.
Implements
Inherited Members
Namespace: DotNext.Threading.Tasks
Assembly: DotNext.Threading.dll
Syntax
public readonly struct TaskCompletionPipe.Consumer<T> : IAsyncEnumerable<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the result produced by the pipe. |
Methods
| Edit this page View SourceGetAsyncEnumerator(CancellationToken)
Gets asynchronous enumerator over completed tasks.
Declaration
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken token = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | token | The token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerator<T> | The asynchronous enumerator over completed tasks. |