- From: Qi Fan <notifications@github.com>
- Date: Tue, 06 Jun 2017 10:35:58 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 6 June 2017 17:36:30 UTC
If we already have ``` var timeoutID = setTimeout(function(){}, 10); clearTimeout(timeoutID) ``` Why not simply do ``` var promiseObjectAsID = fetch(url); promiseObjectAsID.then(function(){}, function(){}); cancelFetch(promiseObjectAsID) ``` Is it because we don't want another global variable like `cancelFetch`? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/447#issuecomment-306561098
Received on Tuesday, 6 June 2017 17:36:30 UTC