-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emits finish
dispite still consuming
#4
Comments
Any updates on this issue? |
You should file a bug report on whatever you are building your writable on (unless it is this module, in which case it is obviously the same bug). Misfiring 'finish'EDIT: I mistakenly claimed 'finish' should fire before processing is done, and this is definitely a bug which only happens when Unless you need to do something while Anatomy of a
|
@Tapppi I really appreciate you detailed feedback. @mafintosh I would like you to take a look at this issue, this core bug-fix improves the package even better. |
…i-flush-to-final I respectfully merged Tapppi/parallel-transform/tree/flush-to-final Refs. mafintosh#4 Refs. mafintosh#6 # Conflicts: # index.js # package.json
This is a big problem, since the node community encourages using 'pipeline' instead of 'pipe', |
@Eli-Goldberg Hi. pipline-pipe might help you, a forked version of parallel-transform with the fix. Happy if you give me feedback. |
The following code is a copy of an example in README plus
finish
event. I assumed the parallel transform emitsfinish
after all data consumption but is didn't.output
This is not pleasant especially when we use libs such as
pump
that calls a callback function depending onfinish
event.It seems that it emits
finish
after all writable data is buffered instead of consumed.This problem occurs also in
parallel-stream
module.Also, when we do
readable.pipe(parallelTransform).pipe(writable)
, the writable emitsfinish
earlier than expected.The text was updated successfully, but these errors were encountered: