Skip to content

AsyncEnumerableExtensions Methods

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

WithBatchSize(IAsyncEnumerable<T>, int)

staticextension
View source
public static IAsyncEnumerable<T> WithBatchSize<T>(this IAsyncEnumerable<T> self, int maxBatchSize)
Specifies the maximum batch size for an System.Collections.Generic.IAsyncEnumerable request.

Parameters

selfIAsyncEnumerable<T>
The instance to configure.
maxBatchSizeint
The batch size.

Returns

The original instance.