View Source Finitomata.State (Finitomata v0.5.0)

Carries the state of the FSM.

Link to this section Summary

Types

The payload that has been passed to the FSM instance on startup

t()

The internal representation of the FSM state

Link to this section Types

@type payload() :: any()

The payload that has been passed to the FSM instance on startup

@type t() :: %Finitomata.State{
  current: Finitomata.Transition.state(),
  payload: payload(),
  history: [Finitomata.Transition.state()]
}

The internal representation of the FSM state