-
public final class FlowExtKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> JobcollectWithEnd(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)Author: bin.yang Maintainer: bin.yang Date: 2021/10/11 Copyright: 2021 Inc. final static <T extends Any> JobcollectWithEnd(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)final static <T extends Any> JobcollectOnce(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> JobcollectOnce(CoroutineScope $self, XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> Jobcollect(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> Jobcollect(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> Jobcollect(XSharedFlow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> Jobcollect(CoroutineScope $self, XStateFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> Jobcollect(CoroutineScope $self, XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final static <T extends Any> <ERROR CLASS>toStateFlow(Flow<T> $self, CoroutineScope scope, T default)final static <T extends Any> <ERROR CLASS>toXStateFlow(Flow<T> $self, CoroutineScope scope, T default)final static <T extends Any> XSharedFlow<T>toXSharedFlow(SharedFlow<T> $self)final static <T extends Any> MutableStateFlow<T>createMutableStateFlow(CoroutineScope $self, T default, SuspendFunction1<CoroutineScope, Flow<T>> func)final static <T extends Any> StateFlow<T>createStateFlow(CoroutineScope $self, T default, SuspendFunction1<CoroutineScope, Flow<T>> func)final static <T extends Any> XSharedFlow<T>createSharedFlow(CoroutineScope $self, Boolean distinct, SuspendFunction1<CoroutineScope, Flow<T>> func)-
-
Method Detail
-
collectWithEnd
final static <T extends Any> Job collectWithEnd(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)
Author: bin.yang Maintainer: bin.yang Date: 2021/10/11 Copyright: 2021 Inc. All rights reserved. Desc:
-
collectWithEnd
final static <T extends Any> Job collectWithEnd(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)
-
collectOnce
final static <T extends Any> Job collectOnce(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collectOnce
final static <T extends Any> Job collectOnce(CoroutineScope $self, XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final static <T extends Any> Job collect(CoroutineScope $self, Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final static <T extends Any> Job collect(Flow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final static <T extends Any> Job collect(XSharedFlow<T> $self, CoroutineScope scope, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final static <T extends Any> Job collect(CoroutineScope $self, XStateFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final static <T extends Any> Job collect(CoroutineScope $self, XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
toStateFlow
final static <T extends Any> <ERROR CLASS> toStateFlow(Flow<T> $self, CoroutineScope scope, T default)
-
toXStateFlow
final static <T extends Any> <ERROR CLASS> toXStateFlow(Flow<T> $self, CoroutineScope scope, T default)
-
toXSharedFlow
final static <T extends Any> XSharedFlow<T> toXSharedFlow(SharedFlow<T> $self)
-
createMutableStateFlow
final static <T extends Any> MutableStateFlow<T> createMutableStateFlow(CoroutineScope $self, T default, SuspendFunction1<CoroutineScope, Flow<T>> func)
-
createStateFlow
final static <T extends Any> StateFlow<T> createStateFlow(CoroutineScope $self, T default, SuspendFunction1<CoroutineScope, Flow<T>> func)
-
createSharedFlow
final static <T extends Any> XSharedFlow<T> createSharedFlow(CoroutineScope $self, Boolean distinct, SuspendFunction1<CoroutineScope, Flow<T>> func)
-
-
-
-