Versions in this module Expand all Collapse all v1 v1.0.2 Dec 16, 2024 v1.0.1 Dec 16, 2024 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)