pub fn emit_all(&self, val: T) {
        let listeners = self.listeners.borrow().clone();
        for listener in listeners.iter() {
            listener.emit(val.clone());
        }
    }
/// Emit a value to all listeners.
///
/// # Arguments
/// - `val` The value to emit.
Emit a value to all listeners.
Emit a value to all listeners .
pub fn emit_all(&self, val: T) {
        let listeners = self.listeners.borrow().clone();
        for listener in listeners.iter() {
            listener.emit(val.clone());
        }
    }
pub fn emit_all ( & self , val : T ) { let listeners = self . listeners . borrow ( ) . clone ( ) ; for listener in listeners . iter ( ) { listener . emit ( val . clone ( ) ) ; } }
Emit a value to all listeners.
Emit a value to all listeners .
&self
val
T
&self
val
T
The value to emit.
The value to emit .