Remove wait function for Group - recursive call.

This commit is contained in:
Mark Beamer Jr 2019-08-25 16:20:01 -04:00
parent f8a231286a
commit 8fa28d3d65
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -70,10 +70,6 @@ func (s *Group) StopAndWait() {
s.Wait() s.Wait()
} }
func (s *Group) Wait() {
defer s.Wait()
}
// Child returns a new instance that will be stopped when s is stopped. // Child returns a new instance that will be stopped when s is stopped.
func (s *Group) Child() *Group { func (s *Group) Child() *Group {
return New(s) return New(s)