Join Slack
Communities
Powered by
<@U0KBF8D7V> I would recommend doing it in every p...
# coroutines
e
elizarov
01/15/2018, 12:09 PM
@Paul Woitaschek
I would recommend doing it in every public function, like
fun doSomeIO(...) = withContext(IO) { ... }
. It is not a big deal to apply it multiple times, since there is a fast-path for the case where it is already executing in the requested context.
Open in Slack
Previous
Next