Join Slack
Powered by
<@U0ZFBBUBU> Use a private constructor that takes ...
# coroutines
l
louiscad
07/20/2018, 6:08 AM
@groostav
Use a private constructor that takes the already initialized data, and in the companion object, declare a
suspend operator fun
that does what you need without blocking.
g
groostav
07/20/2018, 7:05 PM
its all under IOC, so the constructor is called by guice. Still, I get your poiint, push the task of loading the data on the caller.
4
Views
Open in Slack
Previous
Next