Closed rogierschouten closed 9 years ago
Actually, now that ended() can return the 'source' stream's end result, and the result of ended() IS actually handled (because it is passed to the next stream's end()), both concerns of #2 are no longer an issue.
So I was already thinking about returning ended() from forEach() now.
Implemented in 0.6.0: forEach()
now returns result()
(which is the renamed ended()
, mentioned above).
Now that forEach doesn't return a promise (for good reasons), it can maybe return the stream itself. This would facilitate the following code pattern:
Currently, I have to write:
which breaks the natural flow a bit.