parentScope

fun parentScope(coroutineScope: <ERROR CLASS>): EventChannel<BaseEvent>

coroutineScope 作为这个 EventChannel 的父作用域.

实际作用为创建一个新的 EventChannel, 该 EventChannel 包含 this.coroutineContext 和添加的 CoroutineScope.coroutineContext, 并以 CoroutineScope 中 Job (如果有) 作为父 Job

See also

CoroutineScope.globalEventChannel

GlobalEventChannel.parentScope() 的扩展