Async generators: An example case is a readable stream
Observables: A fundamental protocol for processing asynchronous streams of data
These both seem like different ways of tackling the same problem of an asynchronous stream of data. Is there a practical difference between the two, besides a matter of taste?
Judging from the proposed API descriptions:
Observable
constructor does blur the linesObservables are basically event emitters, while asynchronous iterators can be used to form a streaming flow. I also recommend the General Theory of Reactivity as a good read.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With