<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="10.0.0-preview.2.25163.2" />

IAsyncEnumerator<T>

public interface IAsyncEnumerator<T> : IAsyncDisposable
Supports a simple asynchronous iteration over a generic collection.
using System.Runtime.CompilerServices; using System.Threading.Tasks; namespace System.Collections.Generic { public interface IAsyncEnumerator<[System.Runtime.CompilerServices.Nullable(2)] out T> : IAsyncDisposable { [System.Runtime.CompilerServices.Nullable(1)] T Current { [System.Runtime.CompilerServices.NullableContext(1)] get; } ValueTask<bool> MoveNextAsync(); } }