cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

Add `KeyedMutex`

Open BalmungSan opened this issue 1 year ago • 3 comments
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.

BalmungSan avatar Apr 24 '24 17:04 BalmungSan