parentScope

expect fun parentScope(coroutineScope: CoroutineScope): EventChannel<BaseEvent>

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

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

See also

actual fun parentScope(coroutineScope: CoroutineScope): EventChannel<BaseEvent>

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

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

See also