Closed RelicOfTesla closed 3 years ago
func (em *Manager) AwaitFire(e Event) (err error) { ch := make(chan error) go func(e Event) { err := em.FireEvent(e) ch <- err }(e) err = <-ch // MUST close(ch) return }