does kodein support providing objects that are cre...
# kodein
w
does kodein support providing objects that are created via suspend functions?
r
Hey. It does not. This sounds like a bad idea to suspend the dependency resolution mechanism.
w
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
Yep that something I'd probably do.
👍 1