Join Slack
Powered by
does kodein support providing objects that are cre...
# kodein
w
William Reed
05/21/2024, 5:07 PM
does kodein support providing objects that are created via suspend functions?
r
romainbsl
06/03/2024, 3:19 PM
Hey. It does not. This sounds like a bad idea to suspend the dependency resolution mechanism.
w
William Reed
06/03/2024, 3:21 PM
how do you work around obtaining dependencies that have some sort of
suspend fun
involved in their creation? returning a
Deferred
from DI and
await()
in the code that depends on it?
r
romainbsl
06/03/2024, 3:22 PM
Yep that something I'd probably do.
👍 1
3
Views
Open in Slack
Previous
Next