docs($q): clarify what happens when rejected

Closes #3943
This commit is contained in:
naorye 2013-09-10 09:57:45 +02:00 committed by Pete Bacon Darwin
parent ce351e69b1
commit d63a50c3c3

View file

@ -480,8 +480,8 @@ function qFactory(nextTick, exceptionHandler) {
* @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises. * @param {Array.<Promise>|Object.<Promise>} promises An array or hash of promises.
* @returns {Promise} Returns a single promise that will be resolved with an array/hash of values, * @returns {Promise} Returns a single promise that will be resolved with an array/hash of values,
* each value corresponding to the promise at the same index/key in the `promises` array/hash. If any of * each value corresponding to the promise at the same index/key in the `promises` array/hash. If any of
* the promises is resolved with a rejection, this resulting promise will be resolved with the * the promises is resolved with a rejection, this resulting promise will be rejected with the
* same rejection. * same rejection value.
*/ */
function all(promises) { function all(promises) {
var deferred = defer(), var deferred = defer(),