<PackageReference Include="System.Linq.Async" Version="4.1.1" />

System.Linq.IAsyncIListProvider<TElement>

public interface IAsyncIListProvider<TElement> : IAsyncEnumerable<TElement>
An iterator that can produce an array or List<T> through an optimized path.
namespace System.Linq { public interface IAsyncIListProvider<[System.Runtime.CompilerServices.Nullable(2)] TElement> : IAsyncEnumerable<TElement> { ValueTask<TElement[]> ToArrayAsync(CancellationToken cancellationToken); ValueTask<List<TElement>> ToListAsync(CancellationToken cancellationToken); ValueTask<int> GetCountAsync(bool onlyIfCheap, CancellationToken cancellationToken); } }