Comment Comment by dadkins There's a library for that pattern: http://golang.org/pkg/sync/#WaitGroupInstead of counting and using a done channel, import "sync" ... var wg sync.WaitGroup for ... { wg.Add(1) go dowork() } wg.Wait() parent dadkins 14 years ago
Instead of counting and using a done channel,