dojo/promise/all (version 1.10)

Summary

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.

Usage

all(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.

Method Summary

Methods

Error in the documentation? Can’t find what you are looking for? Let us know!