public class FlowUseCase<ARGS,T>
Base Flow use case meant to use in interface CoroutineScopeOwner implementations
interface CoroutineScopeOwner| Constructor and Description |
|---|
FlowUseCase()
Base Flow use case meant to use in
interface CoroutineScopeOwner implementations |
| Modifier and Type | Method and Description |
|---|---|
kotlinx.coroutines.flow.Flow<T> |
build(ARGS args)
Function which builds Flow instance based on given arguments
|
kotlinx.coroutines.Job |
getJob()
Job used to hold and cancel existing run of this use case
|
void |
setJob(kotlinx.coroutines.Job p)
Job used to hold and cancel existing run of this use case
|
public FlowUseCase()
Base Flow use case meant to use in interface CoroutineScopeOwner implementations
interface CoroutineScopeOwner@Nullable public kotlinx.coroutines.Job getJob()
Job used to hold and cancel existing run of this use case
public void setJob(@Nullable
kotlinx.coroutines.Job p)
Job used to hold and cancel existing run of this use case
@NotNull public kotlinx.coroutines.flow.Flow<T> build(ARGS args)
Function which builds Flow instance based on given arguments
args - initial use case arguments