就是这段代码,我想问下这里面是不是用了block语法,,可是定义CoroutineScope.()是什么意思??? 求大佬告知,非常感谢啊
fun launchUI(block: suspend CoroutineScope.() -> Unit) = viewModelScope.launch { block() }
就是这段代码,我想问下这里面是不是用了block语法,,可是定义CoroutineScope.()是什么意思??? 求大佬告知,非常感谢啊
fun launchUI(block: suspend CoroutineScope.() -> Unit) = viewModelScope.launch { block() }