- From: Tim Schaub <notifications@github.com>
- Date: Wed, 10 Jun 2015 22:56:33 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 11 June 2015 05:56:59 UTC
I agree with @appden. If one of the two below were supported, there'd be no need for any of this discussion on cancelable promises. ```js var request = new Request('http://example.com'); fetch(request); setTimeout(function() { request.abort(); }, 10000); ``` *or* ```js fetch('http://example.com', { terminator: function(abort) { setTimeout(abort, 10000); } }); ``` And library authors could pass along this "abort" control if they wished. And it would seem sensible to me if the above promises resolved with a response indicating end-user termination. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-111004364
Received on Thursday, 11 June 2015 05:56:59 UTC