QXmpp Version: 1.10.0
|
Create and update QXmppTask objects to communicate results of asynchronous operations. More...
#include <QXmppPromise.h>
Public Member Functions | |
void | reportFinished (T &&value) |
QXmppTask< T > | task () |
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 |
Report that the asynchronous operation has finished, and call the connected handler of the QXmppTask<T> belonging to this promise.
value | The result of the asynchronous computation |
|
inline |
Obtain a handle to this promise that allows to obtain the value that will be produced asynchronously.