-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
co_main hangs for long-running, detached tasks #72
Comments
You |
It's detached, so, no. |
That's by design then. SIGINT & SIGTERM send cancellation signals to main, not to everything. |
But |
I'll check if I can wire up detached tasks to a global cancellation thing so they can get signalled. My idea was that you don't detach, but use wait_group et al. |
I think the approach is correct. It's akin to a |
If you spawn a long-running, detached task (like a websocket session), SIGINT won't cancel it, but
co_main
will wait for it, causing a deadlock.The text was updated successfully, but these errors were encountered: