(func: Callable[[], Coroutine])
| 22 | async with anyio.create_task_group() as task_group: |
| 23 | |
| 24 | async def run(func: Callable[[], Coroutine]) -> None: # type: ignore[type-arg] |
| 25 | await func() |
| 26 | task_group.cancel_scope.cancel() |
| 27 | |
| 28 | for func, kwargs in args: |
| 29 | task_group.start_soon(run, functools.partial(func, **kwargs)) |