handleState

suspend fun BehaviourContextWithFSM.handleState(contextUpdatesFlow: Flow<Update>, state: State): State?

Handling of state :)

Parameters

contextUpdatesFlow

This Flow will be used as source of updates. By contract, this Flow must be common for all States of incoming state and for the whole chain inside of BehaviourContextWithFSM