interface IAsyncEnumerable<T>

in global :: System . Collections . Generic

Exposes an enumerator that provides asynchronous iteration over values of a specified type.

  • T The type of the elements in the collection.

public IAsyncEnumerator<T> GetAsyncEnumerator( CancellationToken cancellationToken = null )

Returns an enumerator that iterates asynchronously through the collection.

  • cancellationToken A that may be used to cancel the asynchronous iteration.
  • Returns An enumerator that can be used to iterate asynchronously through the collection.