or of course, you can use the Anko doAsync feature...
# anko
y
or of course, you can use the Anko doAsync feature for things not to be done on the Ui thread using
Copy code
doAsync {
    // Long background task
    uiThread {
        result.text = "Done"
    }
}
where result is the view you are editing