10 std::shared_ptr<boost::asio::io_context> io_context)
12 BOOST_ASSERT(io_context);
13 return std::move(io_context);
15 timer_{boost::asio::basic_waitable_timer<std::chrono::system_clock>{
23 timer_.expires_after(duration);
31 const std::function<
void(
const std::error_code &)> &h) {
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
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