Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
T99 opened this issue Sep 10, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@T99
Copy link
Member

T99 commented Sep 10, 2021

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
@T99 T99 added the enhancement New feature or request label Sep 10, 2021
@T99 T99 self-assigned this Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant