Hm. Yeah, piping multiple streams into one stream is pretty awkward.
Basically always has been.
It's probably a good idea to write a `stream-joiner` kind of thing as
an npm module to do this. It wouldn't be very hard.
Another option is for you to pass the `{ end: false }` option when you
pipe to the writer, and then only end when you know that it's actually
over.
On Sun, Apr 7, 2013 at 6:00 PM, Sigurgeir Jonsson
<[email protected]> wrote:
> When piping multiple streams into one stream (terminal stream) an end-event
> from any of the inputs seems to immediately result in a "finish" event of
> the terminal stream.
> Would it not make sense to keep count of incoming pipes that have been
> defined, and only emit "finish" when ALL incoming streams have ended?
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.