parentScope
expect fun parentScope(coroutineScope: CoroutineScope): EventChannel<BaseEvent>
Content copied to clipboard
将 coroutineScope 作为这个 EventChannel 的父作用域.
实际作用为创建一个新的 EventChannel, 该 EventChannel 包含 this.coroutineContext
和添加的 CoroutineScope.coroutineContext, 并以 CoroutineScope 中 Job (如果有) 作为父 Job
See also
GlobalEventChannel.parentScope()
的扩展
actual fun parentScope(coroutineScope: CoroutineScope): EventChannel<BaseEvent>
Content copied to clipboard
将 coroutineScope 作为这个 EventChannel 的父作用域.
实际作用为创建一个新的 EventChannel, 该 EventChannel 包含 this.coroutineContext
和添加的 CoroutineScope.coroutineContext, 并以 CoroutineScope 中 Job (如果有) 作为父 Job
See also
GlobalEventChannel.parentScope()
的扩展