opensavvy.state.coroutines¶
Types¶
ProgressiveFlow¶
typealias ProgressiveFlow<F, T> = Flow<ProgressiveOutcome<F, T>>
Successive values of the same object as time passes.
Functions¶
captureProgress¶
fun <Failure, Value> captureProgress(block: suspend () -> Outcome<Failure, Value>): Flow<ProgressiveOutcome<Failure, Value>>
Captures the progress information of block using CoroutineProgressReporter.
captureProgress¶
Captures the progress information of the current operation using CoroutineProgressReporter.
combineCompleted¶
fun <Failure, Value> ProgressiveFlow<Failure, Value>.combineCompleted(): ProgressiveFlow<Failure, Value>
filterNotLoading¶
fun <F, T> ProgressiveFlow<F, T>.filterNotLoading(): Flow<Outcome<F, T>>