Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Open
ghost opened this Issue May 18, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented May 18, 2013

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!

Owner

dominictarr commented May 18, 2013

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