Struct Sequence.AsyncGenerator<T>
Gets enumerable collection created from generator method.
Implements
Inherited Members
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 SourceGetAsyncEnumerator(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. |