3 ms·
Ah great! I hope the pointer saves you $5 :) Go’s support for race detectors is super ergonomic. You need a unit test for the parent function that’s spawning t
by gen220 6y ago
Ah great! I hope the pointer saves you $5 :)
Go’s support for race detectors is super ergonomic. You need a unit test for the parent function that’s spawning the routines. Run that unit test with the race flag, and it’ll catch it for you. If you’re curious about how it works, this post is good: https://blog.golang.org/race-detector https://blog.golang.org/race-detector