From f74baa7a6ff5c541c3d1cabe66c45fc677038892 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 15 May 2019 10:00:00 +0200 Subject: [PATCH] Fix comment --- src/stream/main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/stream/main.js b/src/stream/main.js index b436179..2b971fd 100644 --- a/src/stream/main.js +++ b/src/stream/main.js @@ -7,12 +7,8 @@ import { parseOpts } from '../options.js' import { getDefaultOpts, forcedOpts } from './options.js' import { handleResult } from './result.js' -// Creates a stream to use in Gulp e.g. -// src(...).pipe(stream(({ path }) => ['command', [path]])) -// This should not be used with commands that allow several files as arguments -// (through variadic arguments, globbing or directory recursion) as a single -// call to those functions would be more efficient that creating lots of -// child processes through streaming. +// Creates a stream that fires child processes on each file: +// gulp.src(...).pipe(stream(({ path }) => `command ${path}`)) export const stream = function(mapFunc, opts) { const defaultOpts = getDefaultOpts({ opts }) const { maxConcurrency, result: resultOpt, ...optsA } = parseOpts({