Skip to content
Discussion options

You must be logged in to vote

It looks a correct pattern. And similar to the example in ASGI docs: https://asgi.readthedocs.io/en/latest/specs/lifespan.html

Seems to me it would block the entire server

No. Which the blocking things? The app() task will be just alive until shutdown. But it won't interfere server to create another app() instance for each request event.

It should be easy to verify this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kludex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants