| 31 | } |
| 32 | |
| 33 | int main() |
| 34 | { |
| 35 | boost::asio::io_context ctx; |
| 36 | |
| 37 | boost::asio::steady_timer timer(ctx); |
| 38 | timer.expires_after(std::chrono::seconds(1)); |
| 39 | |
| 40 | async_wait_twice( |
| 41 | timer, |
| 42 | [](boost::system::error_code ec) |
| 43 | { |
| 44 | std::cout << "second timer wait finished: " << ec.message() << "\n"; |
| 45 | } |
| 46 | ); |
| 47 | |
| 48 | ctx.run(); |
| 49 | |
| 50 | return 0; |
| 51 | } |
nothing calls this directly
no test coverage detected