Function
run
starlette/concurrency.py:24–26
· starlette/concurrency.py::run
(func: Callable[[], Coroutine])
Source from the content-addressed store, hash-verified
| 22 | async with anyio.create_task_group() as task_group: |
| 23 | |
| 24 | async def run(func: Callable[[], Coroutine]) -> None: class="cm"># 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)) |
Callers
nothing calls this directly
Tested by
no test coverage detected