Termination =========== To close down gracefully, the program should request the event loop to stop with the :cpp:func:`netio3::BaseEventLoop::stop` method and wait for the thread to stop. .. code-block:: cpp evloop->stop(); ev_thread.join();