Closed eriq-augustine closed 3 months ago
I can see a system where we can have something like a LockManager, which can handle all the locking functions in addition to clearing out unused locks.
Oliver is going after this.
@OliverLok Are you still going for this?
Initial version implemented in 3058d1ef651085eb282cafccf408238424d23cab. Will close this out once we get one more PR that replace an instance of older locking with this.
This is complete in 01afbb41236ae3eb3e720bfe334543412ad8b4a4 !
Make a package for handling locking.
It will be pretty simple, just lock based on a key. Add in some extras like removing stale locks every so often via a background routine.