|
QXmpp Version: 1.14.4
|
Create and update QXmppTask objects to communicate results of asynchronous operations. More...
#include <QXmppTask.h>
Public Member Functions | |
| QXmppPromise (const QXmppPromise< T > &p) | |
| QXmppPromise (QXmppPromise< T > &&p) | |
| Move constructor. | |
| QXmppPromise< T > & | operator= (const QXmppPromise< T > &p) |
| QXmppPromise< T > & | operator= (QXmppPromise< T > &&p) |
| Move assignment operator. | |
| QXmppTask< T > | task () |
| void | finish () |
| template<typename U > requires (!std::is_void_v<T>) | |
| void | finish (U &&value) |
| bool | cancelled () const |
Friends | |
| class | QXmppTask< T > |
Create and update QXmppTask objects to communicate results of asynchronous operations.
Unlike QFuture, this is not thread-safe. This avoids the need to do mutex locking at every access though.
|
inline |
|
inline |
|
inline |
Finishes task.
Must be called only once.
|
inline |
Finishes task with result.
Must be called only once.
|
inline |
|
inline |
Obtain a handle to this promise that allows to obtain the value that will be produced asynchronously.