Skip to content

Allow the semaphore to be closed and to wait until all remaining locks have been released #1

Description

@T99

Effectively allowing the following syntax:

let semaphore: Semaphore = new Semaphore(n);
// create a bunch of locks
await semaphore.close(); // resolves once all remaining locks release
semaphore.getLock(); // rejects

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions