-
public final class FlowScopeAuthor: bin.yang Maintainer: bin.yang Date: 2021/10/11 Copyright: 2021 Inc. All rights reserved. Desc:
-
-
Field Summary
Fields Modifier and Type Field Description private CoroutineScopescope
-
Method Summary
Modifier and Type Method Description final CoroutineScopegetScope()final UnitsetScope(CoroutineScope scope)final JoblaunchMain(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final JoblaunchIO(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)final Joblaunch(SuspendFunction1<CoroutineScope, Unit> func)final <T extends Any> Jobcollect(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final <T extends Any> Jobcollect(XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final <T extends Any> JobcollectWithEnd(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)final <T extends Any> JobcollectOnce(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final <T extends Any> JobcollectOnce(XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)final <T extends Any> StateFlow<T>createStateFlow(T default, SuspendFunction1<CoroutineScope, Flow<T>> func)final <T extends Any> XSharedFlow<T>createSharedFlow(Boolean distinct, SuspendFunction1<CoroutineScope, Flow<T>> func)final Unitrelease()-
-
Constructor Detail
-
FlowScope
FlowScope(String name)
-
FlowScope
FlowScope(CoroutineScope scope)
-
-
Method Detail
-
getScope
final CoroutineScope getScope()
-
launchMain
final Job launchMain(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launchIO
final Job launchIO(Long delayTime, SuspendFunction1<CoroutineScope, Unit> func)
-
launch
final Job launch(SuspendFunction1<CoroutineScope, Unit> func)
-
collect
final <T extends Any> Job collect(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collect
final <T extends Any> Job collect(XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collectWithEnd
final <T extends Any> Job collectWithEnd(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func, SuspendFunction1<T, Boolean> predicate)
-
collectOnce
final <T extends Any> Job collectOnce(Flow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
collectOnce
final <T extends Any> Job collectOnce(XSharedFlow<T> flow, SuspendFunction2<CoroutineScope, T, Unit> func)
-
createStateFlow
final <T extends Any> StateFlow<T> createStateFlow(T default, SuspendFunction1<CoroutineScope, Flow<T>> func)
-
createSharedFlow
final <T extends Any> XSharedFlow<T> createSharedFlow(Boolean distinct, SuspendFunction1<CoroutineScope, Flow<T>> func)
-
-
-
-