2 ms·
Most of those are FUD: Promies can be cancelled - for example bluebird promises. Standard promises haven't added that feature and are going for tokens - but lo
by inglor 10y ago
Most of those are FUD:
Promies can be cancelled - for example bluebird promises. Standard promises haven't added that feature and are going for tokens - but look at https://github.com/domenic/cancelable-promise https://github.com/domenic/cancelable-promise and https://github.com/zenparsing/es-cancel-token/ https://github.com/zenparsing/es-cancel-token/ - both stage one proposals.
Fetch will take a cancellation token - it's just taking a while but work is being done. A lot of discussions are happening since people are scared (rightfully so) about making a new API bad from the start.
The "errors are swallowed" is also FUD, see my comment below about `unhandledRejection` and `unhandledrejection`.
- iLoch 10y agoDon't get me wrong, I use async/await almost exclusively these days - but I've run into these problems in large real world applications, and they can be hard to fix. This isn't FUD if the main implementation is "broken". With regards to errors being swallowed, I'm not talking about unhandled rejections, I'm talking about code that mishandles rejections and may swallow one intentionally, or code that doesn't pass along errors properly.