Android Scope
fun AndroidScope(lifecycleOwner: LifecycleOwner? = null, lifeEvent: Lifecycle.Event = Lifecycle.Event.ON_DESTROY, dispatcher: CoroutineDispatcher = Dispatchers.Main)
Content copied to clipboard
Parameters
lifecycleOwner
生命周期持有者
lifeEvent
生命周期事件, 默认为Lifecycle.Event.ON_DESTROY下取消协程作用域