achimnol / aiotools

Idiomatic asyncio utilties
https://aiotools.readthedocs.io
MIT License
153 stars 11 forks source link

Experiment with DontPanicO's Supervisor impl. #53

Closed achimnol closed 1 year ago

achimnol commented 1 year ago

This is an experimentation with @DontPanicO's Supervisor implementation, and a demo code for the discussion thread.

This is a breaking change for aiotools, as it requires Python 3.11 to work correctly. I will bump the aiotools version to v2.0 with this PR.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 79.68% and project coverage change: -20.23 :warning:

Comparison is base (13291e2) 74.88% compared to head (3f7f606) 54.66%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #53 +/- ## =========================================== - Coverage 74.88% 54.66% -20.23% =========================================== Files 17 19 +2 Lines 1322 1555 +233 =========================================== - Hits 990 850 -140 - Misses 332 705 +373 ``` | [Impacted Files](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim) | Coverage Δ | | |---|---|---| | [src/aiotools/taskgroup/\_\_init\_\_.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL3Rhc2tncm91cC9fX2luaXRfXy5weQ==) | `50.00% <ø> (-50.00%)` | :arrow_down: | | [src/aiotools/timeouts.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL3RpbWVvdXRzLnB5) | `70.58% <70.58%> (ø)` | | | [src/aiotools/supervisor.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL3N1cGVydmlzb3IucHk=) | `76.99% <76.99%> (ø)` | | | [src/aiotools/\_\_init\_\_.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL19faW5pdF9fLnB5) | `94.11% <100.00%> (+0.78%)` | :arrow_up: | | [src/aiotools/func.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL2Z1bmMucHk=) | `98.03% <100.00%> (ø)` | | | [src/aiotools/utils.py](https://app.codecov.io/gh/achimnol/aiotools/pull/53?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim#diff-c3JjL2Fpb3Rvb2xzL3V0aWxzLnB5) | `100.00% <100.00%> (ø)` | | ... and [6 files with indirect coverage changes](https://app.codecov.io/gh/achimnol/aiotools/pull/53/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joongi+Kim)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.