jhusain / asyncgenerator

Asynchronous Generators for ES7
392 stars 22 forks source link

Observables and streams #14

Open calvinmetcalf opened 9 years ago

calvinmetcalf commented 9 years ago

The scope of this proposal seems to overlap with https://github.com/whatwg/streams, with the Observable object acting like a transform stream. Are there plans for coordination with @domenic on this?

domenic commented 9 years ago

Observable doesn't support backpressure (except through some user protocols on top), so there's not too much overlap.

calvinmetcalf commented 9 years ago

Judging from the comments in the example here https://github.com/jhusain/asyncgenerator/blob/master/README.md#transpilation it seems to consider it related.

On Thu, Mar 5, 2015, 5:07 PM Domenic Denicola notifications@github.com wrote:

Observable doesn't support backpressure, so there's not too much overlap.

— Reply to this email directly or view it on GitHub https://github.com/jhusain/asyncgenerator/issues/14#issuecomment-77462659 .

calvinmetcalf commented 9 years ago

the other thing that made me wonder about coordinations is that a readable stream would seem like a very good use case for an async iterator.