Takes multiple promises and returns a new promise that is fulfilled when all promises have been resolved or one has been rejected.
Takes multiple promises and returns a new promise that is fulfilled when all promises have been resolved or one has been rejected. If one of the promises is rejected, the returned promise is also rejected. Canceling the returned promise will not cancel any passed promises.
(objectOrArray);
Parameter | Type | Description |
---|---|---|
objectOrArray | Object | Array | Optional
The promise will be fulfilled with a list of results if invoked with an array, or an object of results when passed an object (using the same keys). If passed neither an object or array it is resolved with an undefined value. |
Returns: dojo/promise/Promise | undefined
See the dojo/promise/all reference documentation for more information.
© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/promise/all.html