Closed mmajcica closed 6 years ago
Hi, you should use const stream = merge2(...extension, { end: false })
.
merge2(stream1, stream2, ..., streamN, options)
will run in sequence.
merge2([stream1, stream2, ..., streamN], options)
will run in parallel.
Is the stream.add
method adding items to the collection for a sequential run or parallel?
@mmajcica
mergedStream.add(stream)
mergedStream.add(stream1, [stream2, stream3, ...], ...)
stream.add
run as same as merge2 function.
streams in array will run in parallel, otherwise in sequence.
I'm trying to execute a couple of streams sequential, run first stream, wait for it to complete, then run the next stream. The results I'm getting are not what I do expect.
Following is my gulp task:
The output I do get in the console is the following:
Now this is not looking to be synced. Am I misunderstanding the usage of this library or not using it correctly? How do I get each of my copy operations executed sequentially one after another?
Thanks