RetryFlow

interface RetryFlow<T> : Flow<T>

A Flow instance that can be retried by calling retry. Whatever block or flow emission was before will be re-evaluated (re-created) again.

Functions

Link copied to clipboard
abstract suspend fun collect(collector: FlowCollector<T>)
Link copied to clipboard
inline fun <T, R> Flow<Iterable<T>>.mapValues(crossinline transform: (T) -> R): Flow<List<R>>

Maps values of each collection this flow emits.

Link copied to clipboard
abstract fun retry()

Retry the invocation of this flow. The flow that originally was used with this wrapper will be recreated