异步/等待 Android的Kotlin库使用async / await方法以更简单,更可靠的方式编写异步代码,例如: async { progressBar.visibility = View . VISIBLE // Release main thread and wait until text is loaded in background thread val loadedText = await { loadFromServer() } // Loaded successfully, come back in UI thread and show the r