Table of Contents

WhenEachEnumerator<T> Struct

public readonly struct WhenEachEnumerator<T> : IAsyncEnumerator<T>, IAsyncDisposable, IAsyncEnumerable<T> where T : Task

Type Parameters

T
Implements
Inherited Members
Extension Methods

Constructors

WhenEachEnumerator(ICollection<T>, CancellationToken)
WhenEachEnumerator(IEnumerable<T>, CancellationToken)
WhenEachEnumerator(ReadOnlySpan<T>, CancellationToken)

Properties

Current

Gets the element in the collection at the current position of the enumerator.

Methods

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

GetAsyncEnumerator()
GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

MoveNextAsync()

Advances the enumerator asynchronously to the next element of the collection.