3 ms·
An observable is semantically very different to a promise, even if it can be thought as a promise with subsequent success calls. Here is the proposal: https://
by egeozcan 10y ago
An observable is semantically very different to a promise, even if it can be thought as a promise with subsequent success calls.
Here is the proposal: https://github.com/tc39/proposal-observable https://github.com/tc39/proposal-observable
- shados 10y agoYour point being? The semantic is different, but everything a promise can do, an observable can do (with roughly the same amount of code), but the other way around isn't true. Observables are just better in basically every ways. Real world implementations also have proper error handling and decent APIs to handle aborting -today-, while the TC39 is still jumping back and forth trying to figure out how to handle it in promises so that Fetch can stop being useless.