Skip to content

AsyncEnumerableExtensions Methods

Provides extension methods for configuring asynchronous enumerable grain requests.

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.