GetAsyncEnumerator(CancellationToken)
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken))Returns an enumerator that iterates asynchronously through the collection.
Parameters
cancellationTokenCancellationToken- A
System.Threading.CancellationTokenthat may be used to cancel the asynchronous iteration.
Returns
An enumerator that can be used to iterate asynchronously through the collection.
