Specialization of CPromise for void futures.
More...
#include <promise.h>
|
| 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.
|
Specialization of CPromise for void futures.
Definition at line 133 of file promise.h.
◆ abandon()
Mark the task as cancelled.
Definition at line 140 of file promise.h.
◆ chainResult()
When the given future is ready, mark this promise as complete.
Definition at line 159 of file promise.h.
◆ future()
Return a future that can be used to detect when the task is complete.
Definition at line 137 of file promise.h.
◆ setResult() [1/2]
Mark the task as complete.
Definition at line 147 of file promise.h.
◆ setResult() [2/2]
Wait for the given future, then mark the task as complete.
Definition at line 151 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 167 of file promise.h.
The documentation for this class was generated from the following file: