Closed yiminc closed 2 years ago
I think this is working as expected.
Iteration order for maps is random. So, even though the example does not deadlock, it is dangerous: If you run useLock(m) in different goroutines, it can deadlock.
Closing (working as intended). Please re-open if needed.
There is only one thread, the order should not matter.