- From: Alexander <notifications@github.com>
- Date: Wed, 14 Oct 2015 02:14:44 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Wednesday, 14 October 2015 09:15:19 UTC
I think this is the only way: ``` var request = new Request('http://example.com'); setTimeout(function() { request.abort(); }, 10000); fetch(request) .then(statusHandler) .then(resposeAsHandler); .catch(abortCatchHandler) ``` And we can use catchable exception in thenable chain. This will prevent for calling `then` handlers and the exception can be catch in `Promise.prototype.catch`. But after catch the chain is restored and developer must know it. Also a don't know how to design in Promise pattern an exception, that throws in `request.abort` method in example above. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/27#issuecomment-147985567
Received on Wednesday, 14 October 2015 09:15:19 UTC