Editar

Compartilhar via


AsyncEnumerableExtensions.WithBatchSize<T> Method

Definition

Specifies the maximum batch size for an IAsyncEnumerable<T> request.

public static System.Collections.Generic.IAsyncEnumerable<T> WithBatchSize<T>(this System.Collections.Generic.IAsyncEnumerable<T> self, int maxBatchSize);
static member WithBatchSize : System.Collections.Generic.IAsyncEnumerable<'T> * int -> System.Collections.Generic.IAsyncEnumerable<'T>
<Extension()>
Public Function WithBatchSize(Of T) (self As IAsyncEnumerable(Of T), maxBatchSize As Integer) As IAsyncEnumerable(Of T)

Type Parameters

T

The underlying element type.

Parameters

self
IAsyncEnumerable<T>

The instance to configure.

maxBatchSize
Int32

The batch size.

Returns

The original instance.

Applies to