IAsyncEnumerator<T>
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();
}
}