promise/all

dojo/promise/all

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.

Methods

© 2005–2015 The Dojo Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/promise/all.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部