code: func (r *eventRegistry) Emit(e Event, args ...interface{}) {
  	r.mutex.RLock()
  	defer r.mutex.RUnlock()
  
  	for _, h := range r.handlers[e] {
  		if err := r.callHandler(h.MsgHandler, args...); err != nil {
  			Logf("emitting %s failed: %s", e, err)
  		}
  	}
  }
docs: // Emit emits the event with the given arguments.