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.
The one difference between this and synchronous BatchOptions is that
the callback can return a promise, which will be awaited before continuing to batch.
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.The one difference between this and synchronous
BatchOptions
is that the callback can return a promise, which will be awaited before continuing to batch.