poelstra / ts-stream

Type-safe object streams with seamless support for backpressure, ending, and error handling
MIT License
65 stars 13 forks source link

Consider optional 'ender' callback to map(), filter(), etc #9

Closed poelstra closed 9 years ago

poelstra commented 9 years ago

Some map()'s now need to resort to a generic transform(), when all they want is to know when the stream ended.

Also note the proposed third callback to forEach() in #6, which may come in handy too.

poelstra commented 9 years ago

Implemented in 0.5.1.