entering

fun entering(action: (S) -> Unit)

Defines what happens when entering this state.

Example:

entering { state -> println("Entered state") }