onEachFailure

inline fun <T> ResultFlow<T>.onEachFailure(crossinline action: suspend (Throwable) -> Unit): ResultFlow<T>

Returns a flow that invokes the given action if it is a failure before each value of the upstream flow is emitted downstream.

See also

onEach