HotStateFlowRepo
constructor(coroutineContext: CoroutineContext = Dispatchers.Main.immediate, initialState: (HotStateFlowRepo<State>) -> State)
Parameters
State
the type of KalugaState represented by this repo.
coroutineContext
the CoroutineContext used to create a coroutine scope for this state machine. Make sure that if you pass a coroutine context that has sequential execution if you do not want simultaneous state changes. The default Main dispatcher meets these criteria.
initialState
A method for generating the initial State the provided repo should be set in when observation starts.