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): Minor refactor and transform now resolves after flush #24

Closed reconbot closed 6 years ago

reconbot commented 6 years ago

In general less, more similar code between the streams.

Change when transform streams resolve() we're now listening the to readable finish event instead of doing it before the call to _flush(). This should allow us to wait for flush to do whatever it needs to do before ending.