]> git.ardis.lu - csvio/commitdiff
Add note about maxConcurrent for transformation function
authorArdis Lu <ardisglu@gmail.com>
Mon, 20 Jan 2025 07:44:36 +0000 (23:44 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 20 Jan 2025 07:44:36 +0000 (23:44 -0800)
src/core.js

index 94c47d800999254e946d57e08aa0c02917c01858..b2dc40bc98d93e0625a1d7c0c7b0aef59201684a 100644 (file)
@@ -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<string>`, 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.
    */
This page took 0.044397 seconds and 4 git commands to generate.