Experimentally I discovered that setting quantity to zero results in locking all resources with the given label. In other words, quantity: 0 is the same as quantity: 100 if there are 100 resources.
lock(label: 'my-label', quantity: 0) {
}
This is either an undocumented feature or an unintended result.
- If it's undocumented, I'm happy to supply a PR for the readme and jelly.
- If it's not to be relied upon, please let me know.
I personally find this to be a useful feature.
Experimentally I discovered that setting quantity to zero results in locking all resources with the given label. In other words,
quantity: 0is the same asquantity: 100if there are 100 resources.This is either an undocumented feature or an unintended result.
I personally find this to be a useful feature.