|
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 | |
| template<std::invocable FnType> | |
| RepeatingOperation (auto &executor, std::chrono::steady_clock::duration interval, FnType &&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. | |
| void | invoke () |
| Force-invoke the operation. | |
| 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 | |
| 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. | |
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.
|
inline |
Force-invoke the operation.