[issue44795] asyncio.run does not allow for graceful shutdown of main task

2022-03-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please use TaskGroup from Python 3.11 for structural concurrency. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue44795] asyncio.run does not allow for graceful shutdown of main task

2021-07-31 Thread Andreas H.
New submission from Andreas H. : The issue is that the main task (which was supplied to asyncio.run) has no chance to clean up its "own" sub-tasks and handle possible exceptions that occur during the sub-task clean up. It prevents a graceful shutdown. There is no way to prevent the current