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

It seems my comment triggered more argument about cancelable promises being a valid or invalid construct, but did not instigate much discussion about my proposed solution. I'd still like to see some feedback on my suggestion of adding an `abort()` method onto the `Request` object. It seems that the `Request` object is already not really meant to be reused since it implements the `Body` interface, which includes a `bodyUsed` attribute. I believe it's worth solidifying that a `Request` object may only be used once, even for `GET` requests, so that we can add the `abort()` method and perhaps even for attaching event listeners in the future as well (such as upload progress).

No matter what your opinions on cancelable promises, I believe it would very hard to argue that this API would be straight forward and **not** a "footgun".

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

Received on Monday, 18 May 2015 19:46:05 UTC