Skip to content
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

recv with timeout #5

Open
SpaceCat-Chan opened this issue Jul 6, 2022 · 0 comments
Open

recv with timeout #5

SpaceCat-Chan opened this issue Jul 6, 2022 · 0 comments

Comments

@SpaceCat-Chan
Copy link

currently when waiting for a recv, there is no way to interrupt it (probably excluding futures shenanigans most would want to avoid)
this is problematic if (as an example) the user tells the program to quit, then it can't gracefully do that while waiting on a recv.
adding a version of recv with a timeout would mean the task waiting on it can periodically check if it should stop waiting due to other reasons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant