Skip to content

Commit

Permalink
Figure it should say that.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingr committed Jan 21, 2016
1 parent d6fb325 commit cbb37a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/api/promise.all.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ title: Promise.all
Promise.all(Iterable<any>|Promise<Iterable<any>> input) -> Promise
```

This method is useful for when you want to wait for more than one promise to complete.

Given an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols)\(arrays are `Iterable`\), or a promise of an `Iterable`, which produces promises (or a mix of promises and values), iterate over all the values in the `Iterable` into an array and return a promise that is fulfilled when all the items in the array are fulfilled. The promise's fulfillment value is an array with fulfillment values at respective positions to the original array. If any promise in the array rejects, the returned promise is rejected with the rejection reason.


Expand Down

0 comments on commit cbb37a8

Please sign in to comment.