From 985d2f3220cce962e327f5e9a0d865063d5fd8c8 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 24 May 2026 19:21:34 +0200 Subject: [PATCH] add run_for() and poll_one_for() to simulated io_context --- include/simulator/simulator.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/simulator/simulator.hpp b/include/simulator/simulator.hpp index 4641c80..8e02fa7 100644 --- a/include/simulator/simulator.hpp +++ b/include/simulator/simulator.hpp @@ -1140,6 +1140,20 @@ namespace sim std::size_t poll_one(boost::system::error_code& ec); std::size_t poll_one(); + template + std::size_t run_for(std::chrono::duration const&) + { + assert(false); + return 0; + } + + template + std::size_t poll_one_for(std::chrono::duration const&) + { + assert(false); + return 0; + } + void stop(); bool stopped() const; void restart();