// Clear removes all listeners from (all/event)
Clear removes all listeners from (all/event)
// Clear removes all listeners from ( all / event )
func (e *Event) Clear() *Event {
	e.Lock()
	defer e.Unlock()
	e.listeners = []*Listener{}
	return e
}
func ( e * Event ) Clear ( ) * Event { e . Lock ( ) defer e . Unlock ( ) e . listeners = [ ] * Listener { } return e }
Clear removes all listeners from (all/event)
Clear removes all listeners from ( all / event )