ORIGINAL
|
Represents a promise of a future result. More...
#include <async.h>
Public Member Functions | |
promise (Callback &&c) | |
Constructs a promise with a computation callback. | |
future< TYPE > | getFuture () |
Gets the future associated with this promise. | |
void | run () |
Executes the computation and sets the result. | |
Represents a promise of a future result.
TYPE | The result type of the computation |
Callback | The type of the computation callback |
Provides the means to set the result of an asynchronous computation
|
explicit |
Constructs a promise with a computation callback.
c | Callback that will produce the result |
original::async::future< TYPE > original::async::promise< TYPE, Callback >::getFuture | ( | ) |
Gets the future associated with this promise.