System.Linq.Async by .NET Foundation and Contributors

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

.NET API 1,116,304 bytes

 AsyncEnumerablePartition<TSource>

sealed class AsyncEnumerablePartition<TSource> : AsyncIterator<TSource>, IAsyncPartition<TSource>, IAsyncIListProvider<TSource>, IAsyncEnumerable<TSource>
An iterator that yields the items of part of an IAsyncEnumerable<T>.
public ValueTask<int> GetCountAsync(bool onlyIfCheap, CancellationToken cancellationToken)

public IAsyncPartition<TSource> Skip(int count)

public IAsyncPartition<TSource> Take(int count)

public ValueTask<TSource[]> ToArrayAsync(CancellationToken cancellationToken)

public ValueTask<List<TSource>> ToListAsync(CancellationToken cancellationToken)

public ValueTask<Maybe<TSource>> TryGetElementAtAsync(int index, CancellationToken cancellationToken)

public ValueTask<Maybe<TSource>> TryGetFirstAsync(CancellationToken cancellationToken)

public ValueTask<Maybe<TSource>> TryGetLastAsync(CancellationToken cancellationToken)