Specialization of CPromise for void futures.
More...
|
QFuture< void > | future () |
| Return a future that can be used to detect when the task is complete.
|
|
void | abandon () |
| Mark the task as cancelled.
|
|
void | setResult () |
| Mark the task as complete.
|
|
template<typename U > |
void | setResult (QFuture< U > future) |
| Wait for the given future, then mark the task as complete.
|
|
template<typename U > |
void | chainResult (QFuture< U > future) |
| When the given future is ready, mark this promise as complete.
|
|
template<typename F > |
void | setResultFrom (F &&func) |
| Invoke a functor and mark the task as complete. More...
|
|
Specialization of CPromise for void futures.
Definition at line 124 of file promise.h.
◆ setResultFrom()
Invoke a functor and mark the task as complete.
Useful for uniform syntax in generic code where T could be void.
Definition at line 158 of file promise.h.
The documentation for this class was generated from the following file: