Async code/request scope? #26
Unanswered
chbndrhnns
asked this question in
Q&A
Replies: 1 comment 1 reply
-
FastAPI uses its own dependency injection mecanism, why not use it ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to make opyoid work with web frameworks like FastAPI which work asynchronously?
I image a scope which is valid for one request would be really helpful here, probably using
contextvars
.For example, the
dependency_injector
library uses aContextLocalSingleton
scope.Beta Was this translation helpful? Give feedback.
All reactions