From 866a131303bfefa93f7b7a59733b4cdadf7e7a3e Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 19 Jan 2025 23:44:36 -0800 Subject: [PATCH] Add note about maxConcurrent for transformation function --- src/core.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core.js b/src/core.js index 94c47d8..b2dc40b 100644 --- a/src/core.js +++ b/src/core.js @@ -190,6 +190,9 @@ export class CSVTransformer extends TransformStream { * if there is only 1 row in the batch (except for the header row). The header row is always processed by itself and passed as a * `Array`, regardless of the `options.maxBatchSize` value. * + * If `options.maxConcurrent` is a number greater than `1`, multiple instances of the transformation function will be executed + * concurrently in groups up to the size of `options.maxConcurrent`. + * * Return `null` to consume an input row without emitting an output row. * @param {CSVTransformerOptions} options Object containing flags to configure the stream logic. */ -- 2.47.3