Re: [fetch] Aborting a fetch (#27)

> how is that since nobody cancels Promises these days?

In my example, the "library" code is written assuming the promise will always resolve. If we add cancellation to existing promises it breaks that assumption, and the library will have to update. I don't know if that's a good move.

> The reason I've asked is to understand if Fetch API is doomed forever or if it will be improved through a cancelable Promise.

It will be improved through a cancelable Promise (or something similar). You can't use fetch without already guarding against failure, so cancellation can be added here.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/27#issuecomment-93751615

Received on Thursday, 16 April 2015 14:42:14 UTC