-
-
Notifications
You must be signed in to change notification settings - Fork 23
use sys.get_asyncgen_hooks().finalizer to sniff io #28
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
base: master
Are you sure you want to change the base?
use sys.get_asyncgen_hooks().finalizer to sniff io #28
Conversation
|
This is based on the observation that the primary purpose of an async framework is to collect async generator objects, close them correctly and raise a resource warning. sniffio is no longer answering the question of "what sort of object should I _async_yield", it's answering "if I de-reference a an async generator where does it go?" |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 96.51% 87.34% -9.17%
==========================================
Files 4 4
Lines 86 158 +72
Branches 17 22 +5
==========================================
+ Hits 83 138 +55
- Misses 2 17 +15
- Partials 1 3 +2
🚀 New features to boost your workflow:
|
Fixes #20 #27