- From: Andrea Giammarchi <notifications@github.com>
- Date: Fri, 27 Mar 2015 09:00:11 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 27 March 2015 16:02:24 UTC
answering @getify from my POV: ```js var parent = new Promise(function (res, rej, cancel) { var cancelable = setTimeout(res,100); cancel(function () { clearTimeout(cancelable); }); }), child1 = parent.then(function(){ console.log("child1"); }), child2 = parent.then(function(){ console.log("child2"); }); ``` Since you expose cancel-ability, you setup what should happen when you cancel so that `parent.cancel()` will trigger its internal cancellation state. Now, as quantum physics tough us that the world is not just black or white, we also need a canceled state ( IMO™ ) as a way to ignore or react. Let's be more pragmatic, as Jake suggested already before ;-) --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-86987752
Received on Friday, 27 March 2015 16:02:24 UTC