Type Alias BatchOptions<T>

BatchOptions<T>: OneBatchOption<T> | TwoBatchOptions<T> | ThreeBatchOptions<T>

Represents the available batching options for an array stream of type T. A user can either specify a maximum size for a batch, a timeout for the batch or a callback to be called on every batch (e.g. returning true means continue batching false means yield now). At least one must be provided, but you can provide multiple options.

Type Parameters

  • T