When I do that, I get this error:

panic: sync: negative WaitGroup number



On 10/2/22 14:39, Jan Mercl wrote:
On Sun, Oct 2, 2022 at 7:36 PM Robert Solomon <drrob...@gmail.com> wrote:

https://go.dev/play/p/gIVVLsiTqod
I believe wg.Add on line 125 is too late. I think it needs to be moved
before the go statement on line 108. Not tested.

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/4cf0d245-664e-5571-9617-c1d0d28a580c%40gmail.com.

Reply via email to