On Saturday, July 6, 2024 at 11:21:46 AM UTC-4 Robert Engels wrote:
That is not a data race. The wait group is a synchronization barrier.
==================
WARNING: DATA RACE
Write at 0x00c000014158 by goroutine 8:
main.main.func1()
/home/peter/racer.go:12 +0x84
Previous write at 0x00c000014158 by goroutine 13:
main.main.func1()
/home/peter/racer.go:12 +0x84
Goroutine 8 (running) created at:
main.main()
/home/peter/racer.go:10 +0x78
Goroutine 13 (running) created at:
main.main()
/home/peter/racer.go:10 +0x78
==================
1
Found 1 data race(s)
peter
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/e814204e-5461-4d65-a7e7-99feaf94294an%40googlegroups.com.