This commit is contained in:
Jerry Kurian
2019-08-16 10:01:55 -04:00
parent 4e80e48fa4
commit 50f6886b4b
5 changed files with 60 additions and 56 deletions

View File

@@ -4,7 +4,7 @@ import { TransformOptions } from "./baseDefinitions";
* Stores chunks of data internally in array and batches when batchSize is reached.
*
* @param batchSize Size of the batches
* @param maxBatchAge Max lifetime of a batch
* @param maxBatchAge Max lifetime of a batch in seconds
*/
export function batch(
batchSize: number = 1000,