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

refactor: Introduce TaskScope and TaskContext #58

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

achimnol
Copy link
Owner

@achimnol achimnol commented Jun 18, 2023

This PR adds TaskContext and TaskScope to reuse the core concepts and logics for structured concurrency in Supervisor and other coroutine aggregation utilities like as_completed_safe(), gather_safe(), and race().

@codecov
Copy link

codecov bot commented Jul 9, 2023

Codecov Report

Attention: Patch coverage is 71.80617% with 64 lines in your changes missing coverage. Please review.

Project coverage is 74.00%. Comparing base (75ac9e3) to head (5647a22).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/aiotools/taskcontext.py 55.43% 41 Missing ⚠️
src/aiotools/taskscope.py 87.38% 14 Missing ⚠️
src/aiotools/utils.py 35.71% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
- Coverage   74.78%   74.00%   -0.79%     
==========================================
  Files          18       20       +2     
  Lines        1138     1250     +112     
==========================================
+ Hits          851      925      +74     
- Misses        287      325      +38     

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant