System.Linq.Async by .NET Foundation and Contributors

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

.NET API 1,047,504 bytes

 OrderedAsyncPartition<TElement>

sealed class OrderedAsyncPartition<TElement> : AsyncIterator<TElement>, IAsyncPartition<TElement>, IAsyncIListProvider<TElement>, IAsyncEnumerable<TElement>
public OrderedAsyncPartition(OrderedAsyncEnumerable<TElement> source, int minIndexInclusive, int maxIndexInclusive)

public ValueTask<int> GetCountAsync(bool onlyIfCheap, CancellationToken cancellationToken)

public IAsyncPartition<TElement> Skip(int count)

public IAsyncPartition<TElement> Take(int count)

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

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

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

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

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