oskit-kmp
Toggle table of contents
5.0.0
common
Platform filter
common
Switch theme
Search in API
oskit-kmp
oskit-kmp
/
com.outsidesource.oskitkmp.outcome
Package-level
declarations
Types
Functions
Types
Outcome
Link copied to clipboard
sealed
class
Outcome
<
out
V
,
out
E
>
Functions
run
On
Error
Link copied to clipboard
inline
fun
<
T
,
E
>
Outcome
<
T
,
E
>
.
runOnError
(
block
:
(
E
)
->
Unit
)
:
Outcome
<
T
,
E
>
run
On
Ok
Link copied to clipboard
inline
fun
<
T
,
E
>
Outcome
<
T
,
E
>
.
runOnOk
(
block
:
(
T
)
->
Unit
)
:
Outcome
<
T
,
E
>
unwrap
Or
Default
Link copied to clipboard
fun
<
V
,
E
>
Outcome
<
V
,
E
>
.
unwrapOrDefault
(
default
:
V
)
:
V
unwrap
Or
Null
Link copied to clipboard
fun
<
V
,
E
>
Outcome
<
V
,
E
>
.
unwrapOrNull
(
)
:
V
?
unwrap
Or
Return
Link copied to clipboard
inline
fun
<
T
,
E
>
Outcome
<
T
,
E
>
.
unwrapOrReturn
(
block
:
(
Outcome.Error
<
E
>
)
->
Nothing
)
:
T