Action (); err!= nil { return err } //... return nil }) // Goroutine #2 g. Go ( func () error { if err := dangerous.
Action (); err!= nil { errCh <- err return } }() // Goroutine #2 go func (){ defer wg.