timhudson / continue-stream

Lazily merge multiple streams in to a single stream
7 stars 1 forks source link

eager nextStream? #3

Open yocontra opened 5 years ago

yocontra commented 5 years ago

An option to turn on eager mode, where instead of waiting for end of stream before starting the next stream it just waits for a single data point to come out. This would make it possible to get more data faster in some cases, like an API that has a large response time and large body. This would be especially useful for paging through APIs.

Would you accept a PR to add this? Let me know.

timhudson commented 5 years ago

A PR is absolutely welcomed. I can see that being quite useful. What's the API you're thinking of?