oskit-kmp
Toggle table of contents
5.0.0
common
wasmJs
Platform filter
common
wasmJs
Switch theme
Search in API
oskit-kmp
oskit-kmp
/
com.outsidesource.oskitkmp.outcome
/
Outcome
/
Error
Error
data
class
Error
<
out
E
>
(
val
error
:
E
)
:
Outcome
<
Nothing
,
E
>
Members
Members & Extensions
Constructors
Error
Link copied to clipboard
constructor
(
error
:
E
)
Properties
error
Link copied to clipboard
val
error
:
E
Functions
await
Link copied to clipboard
wasmJs
suspend
fun
<
T
:
JsAny
?
>
Outcome
<
IDBRequest
<
T
>
,
Any
>
.
await
(
)
:
Outcome
<
T
,
Any
>
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