kevindmoore
07/16/2019, 5:01 AMAndrew Gazelka
07/16/2019, 5:06 AMAndrew Gazelka
07/16/2019, 5:07 AMkevindmoore
07/16/2019, 5:51 AMkralli
07/16/2019, 6:05 AMwithContext(Dispatchers.IO) { }. And then you just program your asynchronous code like you would with coroutines.kralli
07/16/2019, 6:08 AMlaunch {
val text = withContext(Dispatchers.IO) { someFile.readText() }
println(text)
}Paulius Ruminas
07/16/2019, 6:23 AM