locker
locker copied to clipboard
This is a direct pull from https://github.com/moby/moby/tree/master/pkg/locker
Breaking changes: - The minimum Go version is go1.19 - The result parameter to (*Locker).Unlock() has been dropped. Instead the application will crash with the same fatal run-time error as...
I want to use rwlock @corhere
Recycling objects with a sync.Pool risks amplifying the impact of bugs. If the object is not reset to be functionally indistinguishable from a newly-constructed one before being returned to the...