Clio develop
The XRP Ledger API server.
|
Base for all promise
side of async operations.
More...
#include <Outcome.hpp>
Public Types | |
using | DataType = RetType |
Public Member Functions | |
BasicOutcome (BasicOutcome &&)=default | |
BasicOutcome (BasicOutcome const &)=delete | |
void | setValue (std::convertible_to< RetType > auto &&val) |
Sets the value on the inner promise | |
void | setValue () |
Sets the value channel for void operations. | |
std::future< RetType > | getStdFuture () |
Get the future for the inner promise | |
Protected Attributes | |
std::promise< RetType > | promise_ |
Base for all promise
side of async operations.
RetType | The return type of the operation. |
|
inlinenodiscard |
Get the future
for the inner promise
promise
|
inline |
Sets the value on the inner promise
val | The value to set |