-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
-
1246.v28b_e4cc6fa_16
I'd be interested in seeing a feature where a lock could have an optional priority. If a priority is set, actions requesting resources with a higher priority would get the lock sooner than those with lower priority.
lock('my-resource', priority: 9) { } } lock('my-resource', priority: 5) { }
In this example, I would expect the priority 9 lock to yield before the priority 5 lock, even if priority 5 requested the lock first. This could be used in conjunction with inversePrecedence to order lock yielding within priority buckets.
There's a pending PR already: PR#78
Unfortunately it's stuck since months.