- From: Kane York <notifications@github.com>
- Date: Fri, 29 Jan 2016 12:47:23 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 29 January 2016 20:47:58 UTC
Some of that example code looks dubious. Wouldn't you have to do this? For a long-polling usecase: ``` if (currentFetch) { currentFetch.cancel(); } const fetchPromise = fetch(...); fetchPromise.then(parseResponse).then(processResult); currentFetch = fetchPromise; ``` --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-176962672
Received on Friday, 29 January 2016 20:47:58 UTC