OutcomeFlow

typealias OutcomeFlow<Ok, Error> = Flow<Outcome<Ok, Error>>

Alias for a flow of an outcome result.

val outcome: OutcomeFlow<String, Int> = flow {
// Emit an Outcome from inside the Flow
emit(outcomeOf { 42 })
}

See also