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

Safe asyncio timeout for python 3.11 and above #7570

Closed
fjetter opened this issue Feb 22, 2023 · 1 comment · Fixed by #7571
Closed

Safe asyncio timeout for python 3.11 and above #7570

fjetter opened this issue Feb 22, 2023 · 1 comment · Fixed by #7571
Assignees
Labels

Comments

@fjetter
Copy link
Member

fjetter commented Feb 22, 2023

Python 3.11 introduced the asyncio.timeout which resolves a couple of consistency issues with asyncio.wait_for, see

#6235
Closes #6211 (for python 3.11)

We should offer a utils.wait_for function that uses asyncio.timeout if available to avoid these problematic cases. All occurrences of asyncio.wait_for in our code base should then be replaced by this.

cc @graingert

@mrocklin
Copy link
Member

mrocklin commented Mar 8, 2023 via email

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

Successfully merging a pull request may close this issue.

3 participants