Versions in this module Expand all Collapse all v1 v1.1.2 Apr 17, 2023 v1.1.1 Apr 17, 2023 Changes in this version + const DefaultMaxListeners + var ErrNoneFunction = errors.New("Kind of Value for listener is not Func.") + type Emitter struct + func NewEmitter() (emitter *Emitter) + func (emitter *Emitter) AddListener(event, listener interface{}) *Emitter + func (emitter *Emitter) Emit(event interface{}, arguments ...interface{}) *Emitter + func (emitter *Emitter) GetListenerCount(event interface{}) (count int) + func (emitter *Emitter) Off(event, listener interface{}) *Emitter + func (emitter *Emitter) On(event, listener interface{}) *Emitter + func (emitter *Emitter) Once(event, listener interface{}) *Emitter + func (emitter *Emitter) RecoverWith(listener RecoveryListener) *Emitter + func (emitter *Emitter) RemoveListener(event, listener interface{}) *Emitter + func (emitter *Emitter) SetMaxListeners(max int) *Emitter + type RecoveryListener func(interface{}, interface{}, error)