I'm faced with a problem where loop.stop() before a thread.join() does not complete. This means, the event loop inside thread is still running. I need to gracefully shut down. I'm using the default backend selection which happens to be io_uring on Linux.
Code:
https://github.com/PipeletCloud/workflow-runner/blob/58ef1c275410aa55efed3654ea7393e63554acdf/src/Server.zig#L45-L49