- From: David Bonnet <notifications@github.com>
- Date: Mon, 01 Feb 2016 06:41:14 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Monday, 1 February 2016 14:41:42 UTC
If this helps, we are currently using in production a [fork of fetch()](https://github.com/optimdata/fetch) that adds an `abort()` method to the request object. It works as such: ```js // Creating a request instance var request = fetch(url, params); // Calls to request.then() return the request object and internally update the promise request.then(doSomething); // Calls to request.abort() simply abort the request request.abort(); ``` No need to update promises… --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-177998096
Received on Monday, 1 February 2016 14:41:42 UTC