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

Use to_thread where appropriate #886

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

agners
Copy link
Collaborator

@agners agners commented Sep 13, 2024

Use asyncio.to_thread where appropriate, and replace existing loop.run_in_executor() calls with the shorter asyncio.to_thread() call.

Use asyncio.to_thread where appropriate, and replace existing
loop.run_in_executor() calls with the shorter asyncio.to_thread() call.
@agners agners added the maintenance Code (quality) improvement or small enhancement which not a new feature label Sep 13, 2024
Copy link
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Thanks!

@MartinHjelmare MartinHjelmare merged commit 26ed1f2 into main Sep 13, 2024
4 checks passed
@MartinHjelmare MartinHjelmare deleted the use-to-thread-where-appropriate branch September 13, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Code (quality) improvement or small enhancement which not a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants