This works around a bug where you cannot call done twice in a single event loop
https://github.com/spion/promise-streams/blob/master/index.js#L70-L73
We've been able to observe this bug in production but not reproduce it in tests
A more performance solution would be a queue of some sort because we don't always have to wait until next tick
This works around a bug where you cannot call done twice in a single event loop https://github.com/spion/promise-streams/blob/master/index.js#L70-L73 We've been able to observe this bug in production but not reproduce it in tests A more performance solution would be a queue of some sort because we don't always have to wait until next tick