initial State
This function is used to provide a method for determining the initial state of the FSM using the provided content.
Parameters
init
Is a function that receives a context and returns the state that represents the context
This function is used to provide a method for determining the initial state of the FSM using the provided content.
Is a function that receives a context and returns the state that represents the context