4 ms·
Your 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 ar
by shados 10y ago
Your 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.