就是这段代码,我想问下这里面是不是用了block语法,,可是定义CoroutineScope.()是什么意思??? 求大佬告知,非常感谢啊
fun launchUI(block: suspend CoroutineScope.() -> Unit) = viewModelScope.launch { block() }
可以看这篇文章:https://juejin.im/post/5d5d5aac51882549be53b75b#heading-4