-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Expose ability to acquire multiple permits #2598
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the new async fns to tokio/tests/async_send_sync.rs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks great. I had a few thoughts on API design I'd love to hear your thoughts on.
Also, it would be good to get a +1 from @carllerche before merging this — I don't remember off the top of my head if there was any more specific motivation for not exposing multiple permits in the public Semaphore
API, or if it just hadn't been done yet.
Can you merge master for CI fixes? |
dd57ee1
to
ea6cd8a
Compare
Seems we should PR sent: kornelski#1 |
PR sent: kornelski#2 |
* commit 'd7b7d2c26d8952478c51c946633fa80f7764a104': Support larger number of permits
Closing due to #2605 (comment) |
Closes #1550
Rebased on #2605 and #2607