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
/
Ok
Ok
data
class
Ok
<
out
V
>
(
val
value
:
V
)
:
Outcome
<
V
,
Nothing
>
Members
Members & Extensions
Constructors
Ok
Link copied to clipboard
constructor
(
value
:
V
)
Properties
value
Link copied to clipboard
val
value
:
V
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