20 using ActionType = std::function<void()>;
23 std::reference_wrapper<SystemState> state_;
24 std::chrono::steady_clock::duration interval_;
26 std::optional<util::async::AnyOperation<void>> operation_;
31 static ActionType
const kDEFAULT_AMENDMENT_BLOCK_ACTION;
33 AmendmentBlockHandler(
36 std::chrono::steady_clock::duration interval = std::chrono::seconds{1},
37 ActionType action = kDEFAULT_AMENDMENT_BLOCK_ACTION
40 ~AmendmentBlockHandler()
override;
A type-erased execution context.
Definition AnyExecutionContext.hpp:22