| 61 | } |
| 62 | |
| 63 | int main() |
| 64 | { |
| 65 | try |
| 66 | { |
| 67 | boost::asio::io_context io_context(1); |
| 68 | |
| 69 | boost::asio::signal_set signals(io_context, SIGINT, SIGTERM); |
| 70 | signals.async_wait([&](auto, auto){ io_context.stop(); }); |
| 71 | |
| 72 | co_spawn(io_context, listener(), detached); |
| 73 | |
| 74 | io_context.run(); |
| 75 | } |
| 76 | catch (std::exception& e) |
| 77 | { |
| 78 | std::printf("Exception: %s\n", e.what()); |
| 79 | } |
| 80 | } |
nothing calls this directly
no test coverage detected