Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
None
-
13
-
Team 1 Foundation_Sprint 45, Team 1 Foundation_Sprint 46, Team 1 Foundation_Sprint 47
Description
Add a way of future composition, i.e. creating a QFuture that becomes ready when all or any of the given futures will become available. For example:
QFuture<int> futureFunc1 = QtConcurrent::run(func1); QFuture<int> futureFunc2 = QtConcurrent::run(func2); QFuture<void> finalFuture = QtFuture::combine({futureFunc1, futureFunc2}); finalFuture.then([futureFunc1, futureFunce2](){ ... });
(The example is from the comments of https://www.qt.io/blog/asynchronous-apis-in-qt-6)
Attachments
Issue Links
- is duplicated by
-
QTBUG-86728 Add support for combining QFutures together
-
- Closed
-