From d128a5fa8df93352c2636cb4944906df7f460c31 Mon Sep 17 00:00:00 2001 From: Simon Brunel Date: Mon, 30 Apr 2018 19:02:13 +0200 Subject: [PATCH] Clarify QPromise::all fulfillment values order --- .travis.yml | 4 ---- docs/qtpromise/qpromise/all.md | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f9d4c7d..eff7ef1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,3 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) -f coverage.info - - -# gitbook install . -# gitbook build . dist/docs diff --git a/docs/qtpromise/qpromise/all.md b/docs/qtpromise/qpromise/all.md index 88b89c2..5ecd644 100644 --- a/docs/qtpromise/qpromise/all.md +++ b/docs/qtpromise/qpromise/all.md @@ -4,7 +4,9 @@ [static] QPromise::all(Sequence> promises) -> QPromise> ``` -Returns a `QPromise>` 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>` 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.)