joyent/node — pull request #6139 by isaacs (2013-08-28 02:06:28+00:00)
Title: Chainable pause resume

I was reviewing #6076, and I think it's not a terrible idea, but we may as well do the same thing for pause() and resume(), since userland streams are overriding to add this behavior anyway.

(This PR includes @juliangruber's patch from #6076.)