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

`request.abort()` doesn't compose so well with the storage of request objects. Also, `fetch(request).then(r => r.json())` - should `request.abort()` be able to reject the read of the stream by `r.json()`? A terminator function has the same issues.

The goal is for…

```js
var p = fetch(url).then(r => r.json());
// sometime later…
p.cancel();
```

And cancel will cancel whatever operation is in progress in that promise chain, be it the request, or reading the response.

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

Received on Thursday, 11 June 2015 08:59:39 UTC