net / com.drake.net.utils / scopeNet
fun scopeNet(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() ->Unit):NetCoroutineScope
fun scopeNet(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() ->
Unit
):
NetCoroutineScope
该函数比scope多了以下功能
该作用域生命周期跟随整个应用, 注意内存泄漏