Show / Hide Table of Contents

Struct TaskCompletionPipe.Consumer<T>

Represents asynchronous consumer for the pipe.

Implements
IAsyncEnumerable<T>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
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

View Source

GetAsyncEnumerator(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.

Implements

IAsyncEnumerable<T>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾