Show / Hide Table of Contents

Struct Sequence.AsyncGenerator<T>

Gets enumerable collection created from generator method.

Implements
IAsyncEnumerable<T>
Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Collections.Generic
Assembly: DotNext.dll
Syntax
public struct AsyncGenerator<T> : IAsyncEnumerable<T>
Type Parameters
Name Description
T

The type of the elements returned by generator method.

Methods

| Improve this Doc View Source

GetAsyncEnumerator(CancellationToken)

Gets enumerator over elements to be returned by generator method.

Declaration
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
CancellationToken token

The token that can be used to cancel the enumeration.

Returns
Type Description
IAsyncEnumerator<T>

The enumerator over elements.

Implements

System.Collections.Generic.IAsyncEnumerable<T>

Extension Methods

Sequence.ForEachAsync<T>(IAsyncEnumerable<T>, ValueAction<T>, CancellationToken)
Sequence.ForEachAsync<T>(IAsyncEnumerable<T>, Action<T>, CancellationToken)
Sequence.ForEachAsync<T>(IAsyncEnumerable<T>, ValueFunc<T, CancellationToken, ValueTask>, CancellationToken)
Sequence.ForEachAsync<T>(IAsyncEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Sequence.FirstOrEmptyAsync<T>(IAsyncEnumerable<T>, CancellationToken)
Sequence.FirstOrEmptyAsync<T>(IAsyncEnumerable<T>, ValueFunc<T, Boolean>, CancellationToken)
Sequence.FirstOrEmptyAsync<T>(IAsyncEnumerable<T>, Predicate<T>, CancellationToken)
Sequence.ElementAtAsync<T>(IAsyncEnumerable<T>, Int32, CancellationToken)
Sequence.ToArrayAsync<T>(IAsyncEnumerable<T>, Int32, MemoryAllocator<T>, CancellationToken)
Sequence.Skip<TEnumerator, T>(ref TEnumerator, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX