System.Linq.Async by .NET Foundation and Contributors

<PackageReference Include="System.Linq.Async" Version="4.0.0-preview.1.build.745" />

 IAsyncIListProvider<TElement>

public interface IAsyncIListProvider<TElement> : IAsyncEnumerable<TElement>
An iterator that can produce an array or List<T> through an optimized path.
ValueTask<int> GetCountAsync(bool onlyIfCheap, CancellationToken cancellationToken)

Returns the count of elements in the sequence.

ValueTask<TElement[]> ToArrayAsync(CancellationToken cancellationToken)

Produce an array of the sequence through an optimized path.

ValueTask<List<TElement>> ToListAsync(CancellationToken cancellationToken)

Produce a List<T> of the sequence through an optimized path.