Open KernelDeimos opened 7 years ago
I suggest adding the following:
Always sync.WaitGroup if every goroutine must finish
I got a very confusing race condition changing an unbuffered channel to a buffered channel, as I was waiting for one goroutine to finish but ignoring the other.
I have an addition:
Loop variables used in anonymous goroutines by lexical scoping will not be what you expect
I suggest adding the following:
I got a very confusing race condition changing an unbuffered channel to a buffered channel, as I was waiting for one goroutine to finish but ignoring the other.