| 53 | } |
| 54 | |
| 55 | int main() |
| 56 | { |
| 57 | try |
| 58 | { |
| 59 | boost::asio::io_context io_context(1); |
| 60 | |
| 61 | boost::asio::signal_set signals(io_context, SIGINT, SIGTERM); |
| 62 | signals.async_wait([&](auto, auto){ io_context.stop(); }); |
| 63 | |
| 64 | co_spawn(io_context, listener(), detached); |
| 65 | |
| 66 | io_context.run(); |
| 67 | } |
| 68 | catch (std::exception& e) |
| 69 | { |
| 70 | std::printf("Exception: %s\n", e.what()); |
| 71 | } |
| 72 | } |
nothing calls this directly
no test coverage detected