Sergio Crespo Toubes
09/10/2019, 2:48 PMfun loadData() = MainScope().launch {
}
dector
09/10/2019, 2:51 PMkotlinx-coroutines-test
library (https://github.com/Kotlin/kotlinx.coroutines/tree/master/kotlinx-coroutines-test) there a few ways to do it: using Dispatchers.setMain()
or launching coroutine context to launch()
function.Sergio Crespo Toubes
09/10/2019, 2:58 PM