Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 15, 2019
1 parent 563a1d1 commit f74baa7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/stream/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f74baa7

Please sign in to comment.