sync: improve WaitGroup example by putting the call to Done in a
deferred block. This makes hangs in the waiting code less likely if a goroutine exits abnormally. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7306052
Showing
Please register or sign in to comment