thevery
09/29/2018, 10:55 PMwithContext
vs async
policy or it is ok to continue using withContext
? CoroutineScope
sample uses async
, not `withContext`: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-scope/index.htmlgildor
09/30/2018, 11:38 AMthevery
09/30/2018, 11:55 AMkingsley
09/30/2018, 12:27 PMwithContext
is also very much a member of the scope. And very much like coroutineScope
, it suspends until it’s execution is complete, which as Andrey said, it more optimal than calling eager async {}.await()
in the same scopegildor
09/30/2018, 12:54 PMelizarov
09/30/2018, 1:25 PM