initialState

fun initialState(init: StateQuery<C, S>)

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