Userland to the rescue! ( https://npmjs.org/package/writable-stream-parallel
 )

I agree though, its not a stream.


On Thu, Apr 4, 2013 at 10:56 AM, Isaac Schlueter <[email protected]> wrote:

> The current design is intended.
>
> The purpose of streams is to enable asynchronous sequential data
> flows.  In any "real" stream, you do not ever want multiple write
> operations to be happening at once.  Consider what would happen if you
> did this when writing to a file, or socket, or crypto hashing stream,
> or compressor.  Your data would be corrupted.
>
> Stream is to Time as Array is to Space.  It doesn't make much sense to
> have multiple write() operations happening in parallel.  For use cases
> where it *does* make sense, what you have is not a Stream, but some
> other type of abstraction, and it should probably not be shoehorned
> into the Stream shape, imo.
>
>
>
>
> On Thu, Apr 4, 2013 at 10:24 AM, Sigurgeir Jonsson
> <[email protected]> wrote:
> > Would it make sense to amend stream.Writable so that highWaterMark stands
> > for the maximum number of write-operations (callbacks) outstanding at
> each
> > point?
> > Currently, it seems that stream.Writable is stuck in sequential mode,
> i.e.
> > only one write operation can be outstanding at any given point, until
> > callback.
> >
> > --
> > --
> > 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.
>
>
>

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