> You're still doing it wrong. This is like complaining that you can't tell >> a stream is ended because you waited to attach an `end` event handler. If >> you've deferred to the event loop you have to check if a stream isn't ended >> first. Likewise, you should call read and, only when it's exhausted, add a >> readable handler. >> > I understand what you're saying and I know that works. But unless I'm misinterpreting Isaac that's not how the API was designed to work. I shouldn't have to call stream.read *before* I get a readable event just to start triggering them. It should be perfectly safe to wait a while before registering a readable handler.
-- Michael Jackson @mjackson -- -- 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.
