dojo/promise/all - What if one of the deferreds is not resolved?

Discussion created by RichBetts on Nov 15, 2013
Latest reply on Dec 3, 2013 by RichBetts

The 'Manage results from multiple queries' sample demonstrates how to use dojo/promise/all rather than dojo/DeferredList to query multiple layers simultaneously and process the results when all the queries have finished.
The results available in the DeferredList callback would be a 2 dimensional array, the first element in each array would be a true/false flag to indicate whether the individual deferred in question (individual querytask) resolved successfully or not.

I am finding that the callback for promise/all never fires if any of the individual deferreds is not resolved (perhaps the querytask was attempting to use an incorrect layer ID, timeout etc) 

I am also trying to use promise/all to handle a series of esri.request requests to a number of layer endpoints to check layer availability and again the callback never fires if any of the individual requests returns an error or times out. 

Can anyone give me any pointers as to how to handle this?

Many Thanks