| 14 | using boost::asio::deferred; |
| 15 | |
| 16 | int main() |
| 17 | { |
| 18 | boost::asio::io_context ctx; |
| 19 | |
| 20 | boost::asio::steady_timer timer(ctx); |
| 21 | timer.expires_after(std::chrono::seconds(1)); |
| 22 | |
| 23 | auto deferred_op = timer.async_wait(deferred); |
| 24 | |
| 25 | std::move(deferred_op)( |
| 26 | [](boost::system::error_code ec) |
| 27 | { |
| 28 | std::cout << "timer wait finished: " << ec.message() << "\n"; |
| 29 | } |
| 30 | ); |
| 31 | |
| 32 | ctx.run(); |
| 33 | |
| 34 | return 0; |
| 35 | } |
nothing calls this directly
no test coverage detected