System.Collections.Generic.AsyncEnumerator
Provides a set of extension methods for IAsyncEnumerator<T>.
namespace System.Collections.Generic
{
public static class AsyncEnumerator
{
public static IAsyncEnumerator<T> Create<[System.Runtime.CompilerServices.Nullable(2)] T>(Func<ValueTask<bool>> moveNextAsync, Func<T> getCurrent, Func<ValueTask> disposeAsync);
public static ValueTask<bool> MoveNextAsync<[System.Runtime.CompilerServices.Nullable(2)] T>(this IAsyncEnumerator<T> source, CancellationToken cancellationToken);
public static IAsyncEnumerator<T> WithCancellation<[System.Runtime.CompilerServices.Nullable(2)] T>(this IAsyncEnumerator<T> source, CancellationToken cancellationToken);
}
}