- From: Arthur Stolyar <notifications@github.com>
- Date: Wed, 25 Feb 2015 09:53:28 -0800
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 25 February 2015 17:53:55 UTC
Consider please this example: ```javascript var a = fetch(...); var b = fetch(...); var c = fetch(...); var req = Promise.all([a, b, c]); req.then(function() { // handle load something }); onEscPressed(function() { req.abort(); }); ``` Here is 3 request, for example, made one one user action. Let's say it's dialog. I as a developer sometimes want to controls such request as a one. So for this case I would to use ```Promise.all``` to wait all request or to abort all in one when dialog becomes closed. So, here is the questions: * Will ```Promise.all``` case those promises to generic ```Promise```? If so, what thing developers should use, ```FetchPromise.all```? * Will ```req.abort()``` cancel all ```fetch``` promises? What will happen if one of them will be generic-non-cancelable promise? --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/625#issuecomment-76017059
Received on Wednesday, 25 February 2015 17:53:55 UTC