-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add new trio.to_thread module for running worker threads #1156
Conversation
For consistency with trio.from_thread, and to give us a place for future extensions, like utilities for pushing context managers into threads. See python-triogh-810.
Codecov Report
@@ Coverage Diff @@
## master #1156 +/- ##
==========================================
+ Coverage 99.55% 99.55% +<.01%
==========================================
Files 105 106 +1
Lines 12716 12717 +1
Branches 970 970
==========================================
+ Hits 12659 12660 +1
Misses 36 36
Partials 21 21
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #1156 +/- ##
==========================================
+ Coverage 99.55% 99.55% +<.01%
==========================================
Files 105 106 +1
Lines 12716 12717 +1
Branches 970 970
==========================================
+ Hits 12659 12660 +1
Misses 36 36
Partials 21 21
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. :) Crazy how many instances of a couple method calls we have inside the entire codebase.
@epellis I know, for a library that tries to avoid threads we sure do use or mention threads a lot :-) Want to go ahead and hit the green merge button? |
woot 🎉 |
For consistency with trio.from_thread, and to give us a place for
future extensions, like utilities for pushing context managers into
threads.
See gh-810.