ColdStateFlowRepo
Constructor
Parameters
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.
Creates the first State when observation first takes place.
method called when the repo transitions from no subscriptions to being subscribed to. Contains the last known State and should result in a state transition.
method called when the repo transitions from being subscribed to to no subscriptions. Contains the last known State and should result in a state transition.
Constructor
Parameters
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.
method called when the repo transitions from no subscriptions to being subscribed to. Contains a reference to the ColdStateFlowRepo and should result in a State to transition to.
method called when the repo transitions from being subscribed to to no subscriptions. Contains a reference to the ColdStateFlowRepo and should result in a State to transition to.
Creates the first State when observation first takes place.
Parameters
the type of KalugaState represented by this repo.
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.
method called when the repo transitions from no subscriptions to being subscribed to. Contains the last known State and provides a reference to this ColdStateFlowRepo, and should result in a state transition.
method called when the repo transitions from being subscribed to to no subscriptions. Contains the last known State and provides a reference to this ColdStateFlowRepo, and allows to transition into a deinitialized state.
Creates the first State when observation first takes place.