by bheadmaster · 12mo ago · 0 comments
mutex.Lock()
defer mutex.Unlock()
And if you need to unlock the mutex in one of multiple places, you can wrap it into a sync.Once.There must be a reason Rust doesn't do something similar...
Thanks for the clarification.