pub fn new() -> Self {
        Self {
            handlers: HashMap::new(),
        }
    }
/// Creates a new instance of `EventEmitter`.
Creates a new instance of `EventEmitter`.
Creates a new instance of ` EventEmitter ` .
pub fn new() -> Self {
        Self {
            handlers: HashMap::new(),
        }
    }
pub fn new ( ) -> Self { Self { handlers : HashMap :: new ( ) , } }
Creates a new instance of `EventEmitter`.
Creates a new instance of ` EventEmitter ` .