scopeNet

fun scopeNet(dispatcher: CoroutineDispatcher = Dispatchers.Main, block: suspend CoroutineScope.() -> Unit): NetCoroutineScope

该函数比scope多了以下功能

该作用域生命周期跟随整个应用, 注意内存泄漏

Parameters

dispatcher

调度器, 默认运行在Dispatchers.Main即主线程下