entry

fun entry(currentState: S, action: DefaultEntryExitAction<C, S, A>)

This function defines an action to be invoked when the FSM changes to the provided state

Parameters

currentState

The provided state

action

This action will be invoked