- From: Jake Archibald <notifications@github.com>
- Date: Sat, 28 Mar 2015 01:30:43 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Saturday, 28 March 2015 08:31:05 UTC
@jyasskin @martinthomson
> differ from @jakearchibald in thinking that cancellation should always result in either a resolved or rejected CancellablePromise
I'm not opposed to cancellation resulting in rejection, as long as you can tell a cancellation-rejection apart from other rejections.
```js
fetch(url).then(r => r.json()).catch(err => {
if (!isCancellation) showErrorMessage();
stopSpinner();
});
```
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/27#issuecomment-87190596
Received on Saturday, 28 March 2015 08:31:05 UTC