Kotlin Coroutines Switch Between Ui and Background

June 19, 2019
launch(Dispatchers.Default) { // background

    // process something

    withContext(Dispatchers.Main) { // UI

        // update UI

    }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.