Specialization of Promise for void results. More...
#include <promise.h>
Public Member Functions | |
| Promise ()=default | |
| Constructs a Promise. | |
| ~Promise ()=default | |
| Destructor. | |
| Promise (const Promise &)=delete | |
| Promise & | operator= (const Promise &)=delete |
| Promise (Promise &&other)=default | |
| Promise & | operator= (Promise &&other)=default |
| void | setValue () |
| Signals completion (no value). | |
| void | setError (Error error) |
| Sets an error on the promise. | |
| Future< void > | future () |
| Returns the Future associated with this Promise. | |
Specialization of Promise for void results.
Sets an error on the promise.
| error | The error to set. |