uniflow-core / io.uniflow.core.flow / Action

Action

class Action

Wrap a function that will set a new state or event, regarding current state We can target a specific State KClass to ensure we want to execute on it

Author
Arnaud Giuliani

Constructors

<init>

Action(onSuccess: ActionFunction, onError: ActionErrorFunction, targetState: KClass<out UIState>? = null)

Wrap a function that will set a new state or event, regarding current state We can target a specific State KClass to ensure we want to execute on it

Properties

onError

val onError: ActionErrorFunction

onSuccess

val onSuccess: ActionFunction

targetState

val targetState: KClass<out UIState>?