Join Slack
Powered by
is it possible to use a suspend function in a koin...
# koin
w
William Reed
05/21/2024, 4:45 PM
is it possible to use a suspend function in a koin module for something that provides an instance of the object i care about? i know its not supported natively but i’m still looking for workarounds
p
psh
05/21/2024, 8:43 PM
Perhaps return a
Deferred<MyAwesomeType>
from the Koin module, and then you can
await()
a value in your code?
w
William Reed
05/21/2024, 9:26 PM
that’s a good idea. i might give that a go
70
Views
Open in Slack
Previous
Next