Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

this.emit switches into old steam mode on 0.10? #15

Open
ghost opened this Issue · 1 comment

1 participant

@ghost

HI, just to clarify, if i use through.emit in node v0.10, then I'm switching into old stream mode. So is it correct to say if I use something like event-stream.parse() in my pipeline (which uses through.emit()), then I'm going to break my pipeline down to old stream mode, where data comes eagerly? Im reading tons of json and want to make sure backpressure gets applied so I dont overrun my memory. Thanks!

@dominictarr
Owner

hmm, I think a stream only goes to old mode when you assign a 'data' listener.
pipe can handle new and old, though.

also, through fully supports back pressure, it just does it the old way.

so you should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.