Streams and Observables
See my response when you asked this question a month ago: esdiscuss.org/topic/promises-vs-streams#content-5 Especially, follow the links.
To correct a few misconceptions:
streams analogous to a list of values
there are many things in the async/plural category, not just streams
Async generator (jhusain/asyncgenerator) returns Observable
Or it could return an async generator object (zenparsing/async-iteration). The async generator <-> Observable proposal is just a proposal.
On Fri, May 8, 2015 at 2:00 PM, Domenic Denicola <d at domenic.me> wrote:
See my response when you asked this question a month ago: esdiscuss.org/topic/promises-vs-streams#content-5 Especially, follow the links.
Yes, please do not re-ask questions unless there's some reason to assume the answer has changed.
To correct a few misconceptions:
streams analogous to a list of values
there are many things in the async/plural category, not just streams
For more detail, look for all the various "plural" things in kriskowal/gtor#a
We have,
synchronous primitives: values and list of values(arrays)
synchronous things that give out these primitives: functions and generators
asynchronous primitives: promises analogous to values streams analogous to a list of values
Asynchronous things that give out these primitives: Async function (async..await) returns a promise Async generator (jhusain/asyncgenerator) returns Observable
Where do Observables fit in ? Are they async primitives too ? And what returns a stream ?