-
Notifications
You must be signed in to change notification settings - Fork 250
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
Resizable semaphore #1019
Resizable semaphore #1019
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.
Generally I like the API, it is much nicer to use and doesn't require timer, which is even better!
I have some major comments as well as a bunch of nits about our contributing practices and idiomatic Rust more broadly.
We don't need to see every single step as you were iterating on the implementation in Git history, squash things before creating PR and look through it to see if unnecessary empty lines or other small nuances were accidentally committed, see CONTRIBUTING.md, which talks about that and much more.
Commits like Clean up
should certainly be squashed with original commit it cleans up before pushing, also the whole thing needs to be rebased so that there is no avoidable merge commit in the middle of the history right away.
Please group data structures and corresponding impls together instead of interleaving various definitions with various impls.
Ideally, though not always possible/convenient, data structures should be defined before they are used.
Also latest test run failed and rebase will be necessary due to changes in the branch this targets.
UPD: "Code contributor checklist:" is there to be followed and checked before submitting a PR!
Thanks for the feedback. I will address the comments and update you |
I will squash the commits next |
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.
Looks good, just a few minor things
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.
One nit, looks great otherwise!
Will merge once CI passes, thanks! |
Hm... I was actually waiting for CI to pass before merging |
This is a draft PR based off Nazar's #1017. Specifically this discussion thread: #1017 (comment)
Main change:
End to end testing: TODO
Code contributor checklist: