Observables are great what are you on about? I mean the docs for Rx admittedly aren't the best, but there are other implementions (kefir, bacon, most) if you prefer.
Observables are another pattern for dealing with async. They provide a somewhat similar API to what arrays provide, in that you can call map filter reduce etc on them, which act on the events emitted.
The biggest difference between promises and observables is that a promise will only resolve once and return a single value, whereas observables can emit many values over time.
You can use observables to represent click events, websocket events, pretty much anything.
I mentioned a few implementions below, besides just RxJS, but there is an official proposal for them to be added to the spec.
Observable is primarily a pattern. But if you want to you use it you need to use Rx which as implementations in many languages ( Js but also java, python etc..).
if you want to use [observables] you need to use Rx
That's not true at all. There's an official proposal for them (currently stage 1 I believe), there's also probably a half dozen other implementations: kefir, bacon, and most, off the top of my head.
So stage 1 is a proposal so I need to use a library. And, correct me if I'm wrong but any of the other library you listed may work but none have the same community adoption that Rx has.
1
u/[deleted] Oct 23 '17
Is using Observable (since they're cancelable) any better ?