|
QGIS API Documentation 4.3.0-Master (8c22baaae17)
|
Provides utilities for handling QFutures. More...
#include <qgsfutureutils.h>
Static Public Member Functions | |
| static void | cancelChain (QFuture< void > future) |
| Runs future.cancelChain() if supported by Qt version, future.cancel() otherwise. | |
| static QFuture< void > | clone (QFuture< void > base) |
| Returns a future that will finish at the same time base will. | |
| template<typename... Ts> | |
| static QFuture< std::tuple< Ts... > > | combine (QFuture< Ts >... futures) |
| Converts multiple futures into a single future that will finish when all its parts have finished. | |
| static void | waitForFinished (QFuture< void > future) |
| Waits for the future to become finished without blocking the main thread's event loop. | |
Provides utilities for handling QFutures.
Definition at line 70 of file qgsfutureutils.h.
|
static |
Runs future.cancelChain() if supported by Qt version, future.cancel() otherwise.
Definition at line 103 of file qgsfutureutils.cpp.
|
static |
Returns a future that will finish at the same time base will.
Useful since you can only attach one continuation to a single future.
Definition at line 92 of file qgsfutureutils.cpp.
|
inlinestatic |
Converts multiple futures into a single future that will finish when all its parts have finished.
Like QtFuture::whenAll, but more ergonomic.
Definition at line 103 of file qgsfutureutils.h.
|
static |
Waits for the future to become finished without blocking the main thread's event loop.
Definition at line 61 of file qgsfutureutils.cpp.