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

chore: Migrate to new context manager asyncio.timeout() #559

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rumpelsepp
Copy link
Member

No description provided.

@rumpelsepp rumpelsepp changed the title chore: Migrate to new context manager asyncio.timeou() chore: Migrate to new context manager asyncio.timeout() Jul 18, 2024
@ferdinandjarisch
Copy link
Contributor

What exactly is the added benefit or the fixed bug of this change?

src/gallia/transports/doip.py Outdated Show resolved Hide resolved
@rumpelsepp
Copy link
Member Author

rumpelsepp commented Jul 21, 2024

What exactly is the added benefit or the fixed bug of this change?

Code consistency. This is the recommended way of doing async timeouts nowadays: https://docs.python.org/3/library/asyncio-task.html#timeouts.

I started to use this new API in #555 which would introduce a new way of doing things. For the sake of consistency I did this migration. IMO it is important to stay syncronized with how the community does things to keep the codebase evolving.

@rumpelsepp rumpelsepp added this to the gallia 2.1 milestone Oct 16, 2024
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