.NET API 1,116,304 bytes
IAsyncIListProvider<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);
}
}