outcome
Toggle table of contents
0.4.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
outcome
outcome
/
nz.adjmunro.outcome.members
/
foldOutcome
fold
Outcome
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
fold