gojekfarm / probed

A unix daemon to perform health check on proxy backends.
Apache License 2.0
26 stars 8 forks source link

why use a done channel with wait group #15

Open shubham7saxena opened 6 years ago

shubham7saxena commented 6 years ago

https://github.com/gojektech/probed/blob/master/worker.go#L20 waitGroup.Wait() unblocks and returns automatically once Done() has been called as many times as Add(). why do we need the doneChan