39 using ActionType = std::function<void()>;
42 std::reference_wrapper<etl::SystemState> state_;
43 std::chrono::steady_clock::duration interval_;
45 std::optional<util::async::AnyOperation<void>> operation_;
50 static ActionType
const kDEFAULT_AMENDMENT_BLOCK_ACTION;
55 std::chrono::steady_clock::duration interval = std::chrono::seconds{1},
56 ActionType action = kDEFAULT_AMENDMENT_BLOCK_ACTION
61 if (operation_.has_value())
62 operation_.value().abort();
A type-erased execution context.
Definition AnyExecutionContext.hpp:41