- From: Scott Kyle <notifications@github.com>
- Date: Thu, 28 Jan 2016 15:29:21 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 28 January 2016 23:29:51 UTC
This is cancellable promises thing is really hard to stomach. So let's say I make a request like this: ```js let resultPromise = fetch(url).then(parseResponse).then(retrieveResult); ``` I'm assuming I'd only need to call `cancel()` on `resultPromise` to actually cancel the request? But if I did this instead: ```js let responsePromise = fetch(url).then(parseResponse); let resultPromise = responsePromise.then(retrieveResult); ``` I'm now assuming I would need to call `cancel()` on _both_ `responsePromise` and `resultPromise`? That's insanity, obviously, so I'm assuming you're suggesting that once `responsePromise` is garbage collected, it will intrinsically signal disinterest. Besides being non-deterministic, that might have made sense until you think about wanting to make a request where you don't care about the result, but still **don't want it to cancelled**: ```js fetch('/log/user_action'); ``` What am I missing here? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-176479330
Received on Thursday, 28 January 2016 23:29:51 UTC