In defense of lock poisoning in Rust
sunshowers.io
sunshowers.io
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.