Skip to content

Commit

Permalink
Clarify QPromise::all fulfillment values order
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrunel committed Apr 30, 2018
1 parent dcbb2ef commit d128a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage.info


# gitbook install .
# gitbook build . dist/docs
4 changes: 3 additions & 1 deletion docs/qtpromise/qpromise/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
[static] QPromise<T>::all(Sequence<QPromise<T>> promises) -> QPromise<QVector<T>>
```

Returns a `QPromise<QVector<T>>` that fulfills when **all** `promises` of (the same) type `T` have been fulfilled. The `output` value is a vector containing **all** the values of `promises`, in the same order. If any of the given `promises` fail, `output` immediately rejects with the error of the promise that rejected, whether or not the other promises are resolved.
Returns a `QPromise<QVector<T>>` that fulfills when **all** `promises` of (the same) type `T` have been fulfilled. The `output` value is a vector containing all the values of `promises`, in the same order, i.e., at the respective positions to the original sequence, regardless of completion order.

If any of the given `promises` fail, `output` immediately rejects with the error of the promise that rejected, whether or not the other promises are resolved.

`Sequence` is any STL compatible container (eg. `QVector`, `QList`, `std::vector`, etc.)

Expand Down

0 comments on commit d128a5f

Please # to comment.