foldOutcome

inline fun <Ok, Error, Output> OutcomeFlow<Ok, Error>.foldOutcome(crossinline success: suspend (Ok) -> Output, crossinline failure: suspend (Error) -> Output): Flow<Output>

Returns a Flow of Output by applying success or failure to each Outcome in the upstream flow.

See also