The type of individual operations/items processed by the executor.
Initializes a new instance of the BatchExecutor class.
The type of individual operations/items processed by the executor.
Configuration options including capacity, name, and the batch execution function.
ReadonlycapacityThe maximum number of operations that can be held in a batch before it is considered full.
ReadonlynameThe name identifying this batch executor instance.
Checks whether there are no operations currently queued in the batch.
Checks whether the batch size has reached or exceeded the configured capacity.
Gets the current number of queued operations in the batch.
A utility class to queue operations and execute them in batches.
Example
Executing operations in batches of a specified capacity and flushing remaining items: