BatchBlock<T>.TriggerBatch Method

.NET Framework (current version)

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

Namespace:  System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public void TriggerBatch()

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.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library
Show: