Skip to content

Switch to using async_timeout/asyncio.timeout #71

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

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Apr 10, 2023

asyncio.wait_for creates another tasks which leads to some race conditions in cancelation and a performance hit

cpython 3.12 will change the underlying implementation of asyncio.wait_for to use asyncio.wait but that is still a long way off for many people:

python/cpython#98518

`asyncio.wait_for` creates another tasks which leads to some
race conditions in cancelation and a performance hit

cpython 3.12 will change the underlying implementation of
`asyncio.wait_for` to use `asyncio.wait` but that is still
a long way off for many people:

python/cpython#98518
@bdraco bdraco marked this pull request as ready for review April 10, 2023 18:28
@frawau frawau merged commit eaef91d into aiolifx:master Apr 13, 2023
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

Successfully merging this pull request may close these issues.

2 participants