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

@annevk interesting, thanks. That makes it crystal clear I was wrong about that. :smile:

But what about this:
```js
let unusedPromise = fetch(url).then(handleResponse);
```
The `unusedPromise` would be garbage collected, but I'd still want `handleResponse` to be called when the request succeeds, so clearly garbage collecting the promise shouldn't cause the request to be cancelled.

However, by that logic I'd never be able to cancel this request...
```js
let resultPromise = fetch(url).then(parseResponse).then(retrieveResult);
```
...without retaining references to all the intermediate promises and calling `cancel()` on them? The system can't really know if my `parseResponse` function is operating as a transformer on the response, or a handler that actually uses the response to, for instance, update the UI on my site.

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

Received on Friday, 29 January 2016 00:02:52 UTC