andThen

inline fun <In, Out> ResultFlow<In>.andThen(crossinline success: suspend (In) -> Out): Flow<Result<Out>>

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

See also

map

inline fun <T> ResultFlow<T>.andThen(crossinline predicate: (T) -> Boolean, crossinline success: suspend (T) -> T): Flow<Result<T>>

Returns a flow containing the Out of applying KotlinResult.andIf to each value of the original flow.

See also

map