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. | |
Public Member Functions inherited from util::async::impl::BasicOperation< StoppableOutcome< RetType, StopSourceType > > | |
BasicOperation (StoppableOutcome< RetType, StopSourceType > *outcome) | |
auto | get () |
void | wait () |
Public Member Functions inherited from util::MoveTracker | |
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 | |
Public Types inherited from util::async::impl::BasicOperation< StoppableOutcome< RetType, StopSourceType > > | |
using | DataType |
Protected Member Functions inherited from util::MoveTracker | |
bool | wasMoved () const noexcept |
The function to be used by clients in order to check whether the instance was moved from. | |
Protected Attributes inherited from util::async::impl::BasicOperation< StoppableOutcome< RetType, StopSourceType > > | |
std::future< typename StoppableOutcome< RetType, StopSourceType >::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 |