BatchFlushUtils<T extends Object> constructor
Creates a batcher that flushes via onFlush once batchSize items
accumulate (or when flush is called explicitly).
Implementation
BatchFlushUtils(this.batchSize, this.onFlush) : _buffer = [];