doInContext

suspend fun <T, BC : BehaviourContext> BC.doInContext(behaviourContextReceiver: CustomBehaviourContextReceiver<BC, T>): T

Launch behaviourContextReceiver in context of this as BehaviourContext and as kotlin.coroutines.CoroutineContext

this will NOT be closed automatically