Clio develop
The XRP Ledger API server.
|
The future
side of async operations that can be stopped.
More...
#include <Operation.hpp>
Public Member Functions | |
StoppableOperation (OutcomeType *outcome) | |
Construct a new Stoppable Operation object. | |
StoppableOperation (StoppableOperation const &)=delete | |
StoppableOperation & | operator= (StoppableOperation const &)=delete |
StoppableOperation (StoppableOperation &&)=default | |
StoppableOperation & | operator= (StoppableOperation &&)=default |
void | requestStop () noexcept |
Requests the operation to stop. | |
![]() | |
BasicOperation (OutcomeType *outcome) | |
BasicOperation (BasicOperation &&)=default | |
BasicOperation (BasicOperation const &)=delete | |
auto | get () |
void | wait () |
![]() | |
MoveTracker (MoveTracker &&other) | |
Move constructor sets the moved-from state on other and resets the state on this | |
MoveTracker & | operator= (MoveTracker &&other) |
Move operator sets the moved-from state on other and resets the state on this | |
MoveTracker (MoveTracker const &)=default | |
MoveTracker & | operator= (MoveTracker const &)=default |
Additional Inherited Members | |
![]() | |
using | DataType |
![]() | |
bool | wasMoved () const noexcept |
The function to be used by clients in order to check whether the instance was moved from. | |
![]() | |
std::future< typename OutcomeType::DataType > | future_ |
The future
side of async operations that can be stopped.
RetType | The return type of the operation |
StopSourceType | The type of the stop source |
|
inlineexplicit |
Construct a new Stoppable Operation object.
outcome | The outcome to wrap |