the function bg that i told already worked on another thread, not blocking the UI thread.
you should not do someFunction() = async(UI)
you already have the launch(UI)
i recomend you to read Kotlin for Android Developers by Antonio Leiva
it's a good starting point