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

Fix a bug where wait_to_thread() would await coroutines using the wrong event loops #2037

Closed
wants to merge 4 commits into from

Conversation

bartfeenstra
Copy link
Owner

No description provided.

@bartfeenstra bartfeenstra added bug Something isn't working BC break Breaks backwards compatibility with existing integrations python Pull requests that update Python code labels Sep 25, 2024
@bartfeenstra bartfeenstra added this to the 0.4.0 milestone Sep 25, 2024
@bartfeenstra bartfeenstra marked this pull request as ready for review September 25, 2024 16:03
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.36%. Comparing base (d60d940) to head (1a190f7).

Additional details and impacted files
@@            Coverage Diff             @@
##            0.4.x    #2037      +/-   ##
==========================================
- Coverage   97.37%   97.36%   -0.01%     
==========================================
  Files         343      343              
  Lines       20648    20674      +26     
  Branches     3573     3573              
==========================================
+ Hits        20105    20130      +25     
- Misses        354      355       +1     
  Partials      189      189              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bartfeenstra bartfeenstra marked this pull request as draft September 26, 2024 08:03
Wait for an awaitable in another thread.
"""
synced = _WaiterThread(f)
def wait_to_thread(
Copy link
Owner Author

@bartfeenstra bartfeenstra Sep 26, 2024

Choose a reason for hiding this comment

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

Extract this API change into a separate PR

@bartfeenstra bartfeenstra deleted the fix-wait-to-thread branch October 5, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC break Breaks backwards compatibility with existing integrations bug Something isn't working python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant