cats-effect
cats-effect copied to clipboard
Add `KeyedMutex`
trafficstars
Extention to the current Mutex class to support one look per key.
I extracted the LockQueue and lock implementations into their own file to allow reuse.
I added a basic suite of tests, mostly focused on multiple key interactions.
Since each key is, in essence, its own Mutex I don't think we need to replicate all the complex Mutex tests... since those are actually tests for the LockQueue.