4 ms·
I am indeed writing it in Go, but I have somehow missed the race condition detector... So thanks for reminding me of it! Once I get back to programming it more
by Jhsto 6y ago
I am indeed writing it in Go, but I have somehow missed the race condition detector... So thanks for reminding me of it! Once I get back to programming it more I'll look up how to properly make use of all the tooling -- the last time I ran money on it I simply made a service which phoned me every time a trade was happening, so I could observe _any_ bug in real-time.
- gen220 6y agoAh 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