fun onMainViewClicked() { viewModelScope.launch { // 暫停線程delay(1_000) //之後在主線程 ... 測試案例這裡會使用到kotlinx-coroutines-test來做測試
確定! 回上一頁