- From: Stanislav Termosa <notifications@github.com>
- Date: Thu, 10 Dec 2015 14:17:31 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 10 December 2015 22:18:02 UTC
Here is one more option how to deal with it: ```javascript let xhrPromise = fetch(url) killFetch(xhrPromise); // terminateRequest(<promise>), abort(<promise>), etc. ``` ### The benefits of this approach: 1. It's JavaScript style (clearInterval, clearTimeout); 2. It doesn't change Promise api; 3. It looks more simple and clean than other options. ### Problmes: 1. Need to pass the source promise identificator through all of the promise chain. What does community think about this option? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-163765580
Received on Thursday, 10 December 2015 22:18:02 UTC