Clio develop
The XRP Ledger API server.
|
The future
side of async operations that automatically repeat until aborted.
More...
#include <Operation.hpp>
Public Member Functions | |
RepeatingOperation (auto &executor, std::chrono::steady_clock::duration interval, std::invocable auto &&fn) | |
Construct a new Repeating Operation object. | |
RepeatingOperation (RepeatingOperation const &)=delete | |
RepeatingOperation & | operator= (RepeatingOperation const &)=delete |
RepeatingOperation (RepeatingOperation &&)=default | |
RepeatingOperation & | operator= (RepeatingOperation &&)=default |
void | abort () noexcept |
Aborts the operation and the repeating timer. | |
![]() | |
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 | |
![]() | |
bool | wasMoved () const noexcept |
The function to be used by clients in order to check whether the instance was moved from. | |
The future
side of async operations that automatically repeat until aborted.
CtxType | The type of the execution context |
|
inline |
Construct a new Repeating Operation object.
executor | The executor to operate on |
interval | Time to wait before repeating the user-provided block of code |
fn | The function to execute repeatedly |
|
inlinenoexcept |
Aborts the operation and the repeating timer.