Skip to content

Be able to supply string keys and have mutexes created and destroyed automatically #11

@tjenkinson

Description

@tjenkinson

So that you could do.

locks.lock("something", function() {
   locks.unlock("something");
});
// etc

Detecting when a mutex no longer has anything in its queue and can therefore be removed is actually quite complex, and the user has to maintain a map of all their mutexes to keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions