System.Linq.Async by .NET Foundation and Contributors

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

.NET API 1,116,304 bytes

 AsyncListPartition<TSource>

sealed class AsyncListPartition<TSource> : AsyncIterator<TSource>, IAsyncPartition<TSource>, IAsyncIListProvider<TSource>, IAsyncEnumerable<TSource>
An iterator that yields the items of part of an IList<T>.
public AsyncListPartition(IList<TSource> source, int minIndexInclusive, int maxIndexInclusive)

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)