unicorn-coroutines
/
ru.dimsuz.unicorn.coroutines
/
TransitionDsl
Transition
Dsl
class
TransitionDsl
<
S
:
Any
,
P
,
E
:
Any
>
Content copied to clipboard
Constructors
Functions
Constructors
TransitionDsl
Link copied to clipboard
fun <
P
>
TransitionDsl
(eventPayloads:
Flow
<
P
>)
Content copied to clipboard
TransitionDsl
Link copied to clipboard
fun <
E
:
Any
>
TransitionDsl
(eventSelector:
KClass
<out
E
>)
Content copied to clipboard
Functions
action
Link copied to clipboard
fun
action
(body: (
S
,
S
,
P
) ->
Unit
)
Content copied to clipboard
actionWithEvent
Link copied to clipboard
fun
actionWithEvent
(body: (
S
,
S
,
P
) ->
E
?)
Content copied to clipboard
transitionTo
Link copied to clipboard
fun
transitionTo
(reducer: (
S
,
P
) ->
S
)
Content copied to clipboard