| 52 | } |
| 53 | |
| 54 | int main() |
| 55 | { |
| 56 | boost::asio::io_context ctx; |
| 57 | |
| 58 | boost::asio::steady_timer timer(ctx); |
| 59 | timer.expires_after(std::chrono::seconds(1)); |
| 60 | |
| 61 | async_wait_twice( |
| 62 | timer, |
| 63 | [](int result) |
| 64 | { |
| 65 | std::cout << "result is " << result << "\n"; |
| 66 | } |
| 67 | ); |
| 68 | |
| 69 | // Uncomment the following line to trigger an error in async_wait_twice. |
| 70 | //timer.cancel(); |
| 71 | |
| 72 | ctx.run(); |
| 73 | |
| 74 | return 0; |
| 75 | } |
nothing calls this directly
no test coverage detected