Skip to content

Lock All resources by setting quantity to 0 is not documented #198

@akomakom

Description

@akomakom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions