bustle / bluestream

A collection of streams that work well with promises (through, map, reduce). Think Through2 with promises
MIT License
103 stars 5 forks source link

fix: transform streams could possibly hang #29

Closed reconbot closed 6 years ago

reconbot commented 6 years ago

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