foldResult

inline fun <In, Out> ResultFlow<In>.foldResult(crossinline success: suspend (In) -> Out, crossinline failure: suspend (Throwable) -> Out): Flow<Out>

Returns a flow containing the output of applying KotlinResult.fold to each value of the original flow.

See also

map