Classes | |
| class | SignalWorker |
Functions | |
| asio::awaitable< void > | watchdog (std::chrono::steady_clock::time_point &deadline) |
| Suspends the coroutine until the given deadline is reached. | |
| asio::awaitable< void > | ensureOnStrand (const asio::strand< asio::io_context::executor_type > &strand) |
| asio::awaitable< void > dcn::async::ensureOnStrand | ( | const asio::strand< asio::io_context::executor_type > & | strand | ) |
| asio::awaitable< void > dcn::async::watchdog | ( | std::chrono::steady_clock::time_point & | deadline | ) |
Suspends the coroutine until the given deadline is reached.
| deadline | The point in time when the coroutine should be resumed |
This function is used to implement a watchdog like behavior in the server. It is used for example in the listening function to periodically check if the server should be shut down.