Редагувати

Поділитися через


BatchBlock<T>.TriggerBatch Method

Definition

Triggers the BatchBlock<T> to initiate a batching operation even if the number of currently queued or postponed items is less than the BatchSize.

public:
 void TriggerBatch();
public void TriggerBatch ();
member this.TriggerBatch : unit -> unit
Public Sub TriggerBatch ()

Remarks

In greedy mode, a batch will be generated from queued items even if fewer exist than the batch size.

In non-greedy mode, a batch will be generated asynchronously from postponed items even if fewer items than specified by the batch size can be consumed.

Applies to