mafintosh/pump

returning last stream

pgte opened this issue · 5 comments

pgte commented

Before version 2, pump() used to return the last stream, and apparently now it doesn't.
Even though this wasn't a documented feature before, I find it really useful to simplify the code.

pump@1:

return pump(s1, s2)

pump@2:

pump(s1, s2)
return s2

Do you think this could be a useful feature? If so, I'm willing to add a PR.

This was explicitely removed as per #18.

I don't understand what you miss about the feature. It didn't actually work correctly and the use cases are solved by pumpify. @mafintosh can you explain further?

Out in 3.0.0