Definition at line 163 of file future.hpp.
Public Member Functions | |
| Promise () | |
| Creates a new asynchronous signal store. | |
| Promise (const Promise &)=delete | |
| Promise (Promise &&) noexcept=default | |
| Promise & | operator= (const Promise &)=delete |
| Promise & | operator= (Promise &&) noexcept |
| Future< void > | get_future () |
| void | set_value () |
| void | set_exception (std::exception_ptr ex) |
|
inline |
Creates a new asynchronous signal store.
Definition at line 295 of file future.hpp.
|
inline |
Definition at line 310 of file future.hpp.
|
inlinenodiscard |
Retrieves the Future associated with this signal store.
| std::future_error | if the Future has already been retrieved. |
Definition at line 320 of file future.hpp.
|
inline |
Stores an exception to be thrown on retrieval.
| std::future_error | if a signal or an exception has already been set. |
Definition at line 324 of file future.hpp.
|
inline |
Stores a signal for retrieval.
| std::future_error | if a signal or an exception has already been set. |
Definition at line 322 of file future.hpp.