| 91 | |
| 92 | template <typename Clock, typename Duration> |
| 93 | std::size_t io_context::run_until( |
| 94 | const chrono::time_point<Clock, Duration>& abs_time) |
| 95 | { |
| 96 | std::size_t n = 0; |
| 97 | while (this->run_one_until(abs_time)) |
| 98 | if (n != (std::numeric_limits<std::size_t>::max)()) |
| 99 | ++n; |
| 100 | return n; |
| 101 | } |
| 102 | |
| 103 | template <typename Rep, typename Period> |
| 104 | std::size_t io_context::run_one_for( |