System.Linq.Async by .NET Foundation and Contributors

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

.NET API 1,116,304 bytes

 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.