Non blocking code in Go (Part 2)
Swapping variables in realtime
One process that we see a lot is swapping a config variable for a new one without restarting the running process. Again, we can do this pretty easily with a mutex. Below is some example code that swaps a very simple…