net / com.drake.net.utils / kotlinx.coroutines.flow.Flow
Name | Summary |
---|---|
listen | 收集Flow结果并过滤重复结果fun <T> Flow<T>.listen(owner: LifecycleOwner? = null, event: Event = Lifecycle.Event.ON_DESTROY, dispatcher: CoroutineDispatcher = Dispatchers.Main, action: suspend CoroutineScope.(value: T) -> Unit ): AndroidScope |
scope | Flow直接创建作用域fun <T> Flow<T>.scope(owner: LifecycleOwner? = null, event: Event = Lifecycle.Event.ON_DESTROY, dispatcher: CoroutineDispatcher = Dispatchers.Main, action: suspend CoroutineScope.(value: T) -> Unit ): AndroidScope |