/// Helper function to invoke a closure that provides a locked
/// [`Ctx<TestDispatcher>`] provided by this `TestStack`.
Helper function to invoke a closure that provides a locked
[`Ctx`] provided by this `TestStack`.
Helper function to invoke a closure that provides a locked [ ` Ctx ` ] provided by this ` TestStack ` .
pub(crate) async fn with_ctx<R, F: FnOnce(&mut Ctx<TestDispatcher>) -> R>(
        &mut self,
        f: F,
    ) -> R {
        let mut ctx = self.ctx.lock().await;
        f(ctx.deref_mut())
    }
pub ( crate ) async fn with_ctx < R , F : FnOnce ( & mut Ctx < TestDispatcher > ) -> R > ( & mut self , f : F , ) -> R { let mut ctx = self . ctx . lock ( ) . await ; f ( ctx . deref_mut ( ) ) }
Helper function to invoke a closure that provides a locked
[`Ctx<TestDispatcher>`] provided by this `TestStack`.
Helper function to invoke a closure that provides a locked [ ` Ctx<TestDispatcher > ` ] provided by this ` TestStack ` .
&mut self
f
F