gildor
02/05/2018, 1:34 PMbg
+ withContext(UI)
)
Or you can run coroutine with UI dispatcher and use non blocking operations inside or run some child coroutines in thread pool.
Just depends on you case, what is more convenient.
But if all your calls are non blocking second option looks usually better, more clear code, no additional context switches