createSubContextAndDoSynchronouslyWithUpdatesFilter

suspend fun <T, BC : BehaviourContext> BC.createSubContextAndDoSynchronouslyWithUpdatesFilter(triggersHolder: TriggersHolder = this.triggersHolder, updatesUpstreamFlow: Flow<Update> = allUpdatesFlow, additionalSubcontextInitialAction: CustomBehaviourContextAndTypeReceiver<BehaviourContext, Unit, Update>? = null, behaviourContextReceiver: CustomBehaviourContextReceiver<BC, T>): T

Creates new one BehaviourContext using createSubContext and launches behaviourContextReceiver in a new context using doInContext.

This action will be executed in synchronous manner which means that until the context created with createSubContext will be done this function will not let execution of code continue