BatchBlock<T>.TriggerBatch 方法
定义
触发 BatchBlock<T> 以启动批处理操作,即使当前排队或推迟项的数量小于 BatchSize。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 ()
注解
在贪婪模式下,即使少于批大小,也会从排队项生成批处理。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.