# Functions

New creates a Batcher that will hold numBatches in its pipeline, having a channel with batchChannelSize to receive new items.

# Variables

ErrInvalidBatchChannelSize occurs when an invalid batch channel size is specified.
ErrInvalidNumBatches occurs when an invalid number of batches is specified.

# Interfaces

Batcher behaves like a pipeline of batches that has a fixed number of batches in the pipe and a new batch being built outside of the pipe.

# Type aliases

Batch is the type of batches held by the Batcher.