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

Switch to using async_timeout for timeouts #916

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Aug 2, 2022

No description provided.

@bdraco bdraco force-pushed the async_timeout branch 3 times, most recently from 5bd285c to e211ef0 Compare August 2, 2022 06:20
Copy link
Collaborator

@dlech dlech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share some before/after measurements so we can see what the actual performance improvement is?

bleak/backends/corebluetooth/PeripheralDelegate.py Outdated Show resolved Hide resolved
bleak/backends/p4android/scanner.py Show resolved Hide resolved
setup.py Show resolved Hide resolved
@bdraco
Copy link
Contributor Author

bdraco commented Aug 2, 2022

Can you share some before/after measurements so we can see what the actual performance improvement is?

Its best summed up by this stackoverflow by one of the asyncio authors

https://stackoverflow.com/questions/47000770/async-timeout-timeout-vs-asyncio-wait-for

@dlech dlech merged commit 90aed10 into hbldh:develop Aug 3, 2022
@dlech
Copy link
Collaborator

dlech commented Aug 3, 2022

merged, thanks!

@dlech dlech mentioned this pull request Aug 31, 2022
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.

None yet

2 participants