Closed katunilya closed 11 months ago
@katunilya Hello, thank you. Well I think it was a bit of an overstatement. What I meant is kink can inject dependencies into your async functions.
Your usecase is a very interesting thou, and sounds like a good feature request.
@dkraczkowski thanks for quick response!
Truly I thinks it might be a great feature.
Hi!
First of all, thanks for such simple and useful DI!
In readme it is said that
kink
support "async withasyncio
" however I don't see any examples of such functionality. Is it possible to create some fastapi-like async dependency?Concrete case (
sqlalchemy
'sAsyncSesssion
):I tried I few workaround, but all of them just does not work, as
kink
understands (as it seems to me) only lambda-based factory functions.