- From: Jake Archibald <notifications@github.com>
- Date: Thu, 11 Jun 2015 01:59:10 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 11 June 2015 08:59:39 UTC
`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