But this implies that I pipe things together in the same iteration of the 
event loop? This doesn't seem to enable to possible to somehow re-read a 
readable stream in later iterations. (like "resetting" a readable stream).

On Monday, November 4, 2013 1:32:21 PM UTC+1, mscdex wrote:
>
> On Monday, November 4, 2013 3:32:55 AM UTC-5, greelgorke wrote:
>>
>> as far as i know, there is no support for multiple parallel pipes in 
>> core. also there is no support for reseting a stream, in fact streams are 
>> (not only in node) one-shots. anyway there are user land streams, that 
>> support multipiping. for reseting the stream you have to buffer all the 
>> content, which is not what streams should do. another possible solution 
>> might be to create a new readable when a second pipe appeared and pipe the 
>> new readable to it.
>>
>>
> Huh? You can definitely pipe a Readable stream to multiple Writable 
> streams at least in node v0.10.x or newer.
>
> Here's where they get added:
> https://github.com/joyent/node/blob/v0.10/lib/_stream_readable.js#L453
>
> Here's where they get written to:
> https://github.com/joyent/node/blob/v0.10/lib/_stream_readable.js#L589-L594
>

-- 
-- 
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.

Reply via email to