handleState

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

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