pub fn send_ctx<K, B>(&self, ctx: K, value: B)
    where
        K: Borrow<C>,
        B: Borrow<T>,
    {
        let ctx = ctx.borrow();
        let value = value.borrow();
        for observer in self.observers.borrow_mut().iter_mut() {
            observer(ctx, value);
        }
    }
/// Send a value along with context to all observers of the broadcast.
Send a value along with context to all observers of the broadcast.
Send a value along with context to all observers of the broadcast .
pub fn send_ctx<K, B>(&self, ctx: K, value: B)
    where
        K: Borrow<C>,
        B: Borrow<T>,
    {
        let ctx = ctx.borrow();
        let value = value.borrow();
        for observer in self.observers.borrow_mut().iter_mut() {
            observer(ctx, value);
        }
    }
pub fn send_ctx < K , B > ( & self , ctx : K , value : B ) where K : Borrow < C > , B : Borrow < T > , { let ctx = ctx . borrow ( ) ; let value = value . borrow ( ) ; for observer in self . observers . borrow_mut ( ) . iter_mut ( ) { observer ( ctx , value ) ; } }
Send a value along with context to all observers of the broadcast.
Send a value along with context to all observers of the broadcast .
&self
ctx
K
value
B
&self
ctx
K
value
B