不同于Kotlin 工程间接应用GlobalScope,这个示例在ViewModel中应用协程。须要应用 viewModelScope 。 上面的CorVm1 继承了ViewModel。 import androidx.
確定! 回上一頁