Open adriangb opened 2 years ago
Alternatively: we could just export ConnectionTasks = Annotated[anyio.abc.TaskGroup, Depends(anyio.create_task_group, scope="connection")]
and AppTasks = Annotated[anyio.abc.TaskGroup, Depends(anyio.create_task_group, scope="app")]
, or write a tutorial on how to do this at least.
There are currently no tests and I'm pretty sure it doesn't work.
The tricky bit will be documenting the interaction between Response and BackgroundTasks