allowed

fun allowed(given: S, includeDefault: Boolean = false): Set<E>

This function will provide the set of allowed events given a specific state. It isn't a guarantee that a subsequent transition will be successful since a guard may prevent a transition. Default state handlers are not considered.

Parameters

given

The specific state to consider

includeDefault

When true will include default transitions in the list of allowed events.