I have a question, lets say we run a coroutine under Android to fetch some data from a restful api, then we need to update our UI how would i have to go about that? my initial thought would be to do something like this
Copy code
async(CommonPool) {
val json = fetchFromNetwork()
launch(UI){
//call method that updates the UI
}
}