1
0

index.md 950 B

net / com.drake.net.utils / kotlinx.coroutines.flow.Flow

Extensions for kotlinx.coroutines.flow.Flow

Name Summary
listen 监听数据库fun <T> Flow<List<T>>.listen(lifecycleOwner: LifecycleOwner? = null, lifeEvent: Event = Lifecycle.Event.ON_DESTROY, block: (List<T>) ->Unit):Unit
scope fun <T> Flow<T>.scope(owner: LifecycleOwner? = null, event: Event = Lifecycle.Event.ON_DESTROY, action: suspend (value: T) ->Unit): CoroutineScope