6 #ifndef KAGOME_BASIC_WAITABLE_TIMER_HPP 7 #define KAGOME_BASIC_WAITABLE_TIMER_HPP 9 #include <boost/asio/basic_waitable_timer.hpp> 10 #include <boost/asio/io_context.hpp> 20 std::shared_ptr<boost::asio::io_context> io_context);
31 const std::function<
void(
const std::error_code &)> &h)
override;
35 boost::asio::basic_waitable_timer<std::chrono::system_clock>
timer_;
39 #endif // KAGOME_BASIC_WAITABLE_TIMER_HPP
boost::asio::basic_waitable_timer< std::chrono::system_clock > timer_
std::shared_ptr< boost::asio::io_context > io_context_
void expiresAt(clock::SystemClock::TimePoint at) override
void asyncWait(const std::function< void(const std::error_code &)> &h) override
~BasicWaitableTimer() override=default
void expiresAfter(clock::SystemClock::Duration duration) override
typename ClockType::duration Duration
BasicWaitableTimer(std::shared_ptr< boost::asio::io_context > io_context)
typename ClockType::time_point TimePoint