``` launch(CommonPool) { val result = doSometh...
# android
g
Copy code
launch(CommonPool) {
    val result = doSomethingInBackgroundThread()
    launch(UI) {
      doSomethingInUiThread(result)
    }  
}
or opposite approach (coroutine for background job inside UI coroutine):
Copy code
launch(UI) {
   val result = run(CommonPool) { doSomethingInBackgroundThread() }
   view.text = result
}