6 #ifndef IROHA_TIMER_IMPL_HPP 7 #define IROHA_TIMER_IMPL_HPP 11 #include <rxcpp/rx-lite.hpp> 14 #include <rxcpp/operators/rx-observe_on.hpp> 26 TimerImpl(std::chrono::milliseconds delay_milliseconds,
27 rxcpp::observe_on_one_worker coordination);
37 std::mutex timer_lifetime_mutex;
38 std::chrono::milliseconds delay_milliseconds_;
39 rxcpp::composite_subscription coordinator_lifetime_;
40 rxcpp::observe_on_one_worker coordination_;
41 rxcpp::composite_subscription timer_lifetime_;
47 #endif // IROHA_TIMER_IMPL_HPP void invokeAfterDelay(std::function< void()> handler) override
Definition: timer_impl.cpp:19
TimerImpl & operator=(const TimerImpl &)=delete
TimerImpl(std::chrono::milliseconds delay_milliseconds, rxcpp::observe_on_one_worker coordination)
Definition: timer_impl.cpp:12
Definition: block_query.hpp:15
~TimerImpl() override
Definition: timer_impl.cpp:39
Definition: timer_impl.hpp:19
void deny() override
Definition: timer_impl.cpp:30