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

IAsyncEnumerable<T>

public interface IAsyncEnumerable<T>
Exposes an enumerator that provides asynchronous iteration over values of a specified type.
using System.Runtime.CompilerServices; using System.Threading; namespace System.Collections.Generic { [System.Runtime.CompilerServices.NullableContext(1)] public interface IAsyncEnumerable<[System.Runtime.CompilerServices.Nullable(2)] out T> { IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken)); } }