Skip to content

Shutting down an event loop in a thread #173

@RossComputerGuy

Description

@RossComputerGuy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions