EffectStore
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
EffectStore
effectstore
/
com.intive.effectstore
/
EffectState
Effect
State
sealed
class
EffectState
<
out
R
>
Inheritors
Running
Completed
Failed
Cancelled
Members
Members & Extensions
Types
Cancelled
Link copied to clipboard
data
class
Cancelled
(
val
effectId
:
EffectId
,
val
ownerId
:
OwnerId
?
,
val
triggerAction
:
Action
)
:
EffectState
<
Nothing
>
Completed
Link copied to clipboard
data
class
Completed
<
R
>
(
val
effectId
:
EffectId
,
val
ownerId
:
OwnerId
?
,
val
triggerAction
:
Action
,
val
result
:
R
)
:
EffectState
<
R
>
Failed
Link copied to clipboard
data
class
Failed
(
val
effectId
:
EffectId
,
val
ownerId
:
OwnerId
?
,
val
triggerAction
:
Action
,
val
cause
:
Throwable
?
)
:
EffectState
<
Nothing
>
Running
Link copied to clipboard
data
class
Running
(
val
effectId
:
EffectId
,
val
ownerId
:
OwnerId
?
,
val
triggerAction
:
Action
)
:
EffectState
<
Nothing
>
Properties
effect
Id
Link copied to clipboard
abstract
val
effectId
:
EffectId
owner
Id
Link copied to clipboard
abstract
val
ownerId
:
OwnerId
?
trigger
Action
Link copied to clipboard
abstract
val
triggerAction
:
Action
Functions
get
Result
If
Completed
Else
Link copied to clipboard
fun
getResultIfCompletedElse
(
elseProducer
:
(
)
->
R
)
:
R
get
Result
If
Completed
Or
Null
Link copied to clipboard
fun
getResultIfCompletedOrNull
(
)
:
R
?
is
Completed
Link copied to clipboard
fun
EffectState
<
*
>
.
isCompleted
(
)
:
Boolean
is
Failed
Link copied to clipboard
fun
EffectState
<
*
>
.
isFailed
(
)
:
Boolean
is
Running
Link copied to clipboard
fun
EffectState
<
*
>
.
isRunning
(
)
:
Boolean
map
Link copied to clipboard
fun
<
U
>
map
(
f
:
(
R
)
->
U
)
:
EffectState
<
U
>
matches
Action
Type
Link copied to clipboard
inline
fun
<
A
:
Action
>
EffectState
<
*
>
.
matchesActionType
(
)
:
Boolean
matches
Id
Link copied to clipboard
fun
matchesId
(
effectId
:
EffectId
)
:
Boolean
matches
Id
And
Owner
Link copied to clipboard
fun
matchesIdAndOwner
(
effectId
:
EffectId
,
ownerId
:
OwnerId
)
:
Boolean
matches
Owner
Link copied to clipboard
fun
matchesOwner
(
ownerId
:
OwnerId
)
:
Boolean