Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for BackgroundTasks #55

Open
adriangb opened this issue Feb 7, 2022 · 1 comment
Open

feat: support for BackgroundTasks #55

adriangb opened this issue Feb 7, 2022 · 1 comment

Comments

@adriangb
Copy link
Owner

adriangb commented Feb 7, 2022

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

@adriangb
Copy link
Owner Author

adriangb commented Feb 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant