Re:Updating the Go Memory Model
by spyspy on Monday July 12, 2021 @11:54AM
(#27811557)
Usually http handlers or a database functions are pointer methods on some larger Service or DB struct type. If the config changes, you'd have a mutex within that struct and a method that safely modifies its state by locking and unlocking the mutex.
[ Parent
| on HN ]
There are no comments on this comment yet.