Clio develop
The XRP Ledger API server.
|
Stoppable outcome. More...
#include <Outcome.hpp>
Public Member Functions | |
StoppableOperation< RetType, StopSourceType > | getOperation () |
Gets the stoppable operation for this outcome. | |
StopSourceType & | getStopSource () |
Gets the stop source for this outcome. | |
![]() | |
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 | |
Additional Inherited Members | |
![]() | |
using | DataType = RetType |
![]() | |
std::promise< RetType > | promise_ |
Stoppable outcome.
RetType | The return type of the operation. |
StopSourceType | The type of the stop source. |
|
inlinenodiscard |
Gets the stoppable operation for this outcome.
|
inlinenodiscard |
Gets the stop source for this outcome.