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.
using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; namespace System.Linq { public interface IAsyncIListProvider<[System.Runtime.CompilerServices.Nullable(2)] TElement> : IAsyncEnumerable<TElement> { [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1 })] ValueTask<TElement[]> ToArrayAsync(CancellationToken cancellationToken); [return: System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1 })] ValueTask<List<TElement>> ToListAsync(CancellationToken cancellationToken); ValueTask<int> GetCountAsync(bool onlyIfCheap, CancellationToken cancellationToken); } }