Message414161
I have updated the PersistentTaskGroup implementation referring asyncio.TaskGroup and added more detailed test cases, which works with the latest Python 3.11 GitHub checkout.
https://github.com/achimnol/aiotools/pull/36/files
Please have a look at the class docstring.
There are two different usage: async context manager vs. attributes of long-lived objects.
One of the point is to "revive" asyncio.gather() with return_exceptions=True but let it handle/report exceptions immediately with customizable exception handler.
Currently two-phase shutdown is not implemented yet as I'm still thinking about how to adapt the current implementation. |
|
Date |
User |
Action |
Args |
2022-02-27 16:40:41 | achimnol | set | recipients:
+ achimnol, gvanrossum, asvetlov, yselivanov, tinchester |
2022-02-27 16:40:41 | achimnol | set | messageid: <1645980041.04.0.565562712444.issue46843@roundup.psfhosted.org> |
2022-02-27 16:40:41 | achimnol | link | issue46843 messages |
2022-02-27 16:40:40 | achimnol | create | |
|