// TriggerEvent Get the trigger event for key.
TriggerEvent Get the trigger event for key.
// TriggerEvent Get the trigger event for key .
func (emit Emits) TriggerEvent(key string) *TriggerEvent {
	access.Lock()
	defer access.Unlock()
	if val, ok := emit[key]; ok {
		return val
	}
	return nil
}
func ( emit Emits ) TriggerEvent ( key string ) * TriggerEvent { access . Lock ( ) defer access . Unlock ( ) if val , ok := emit [ key ] ; ok { return val } return nil }
TriggerEvent Get the trigger event for key.
TriggerEvent Get the trigger event for key .