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

Document that Semaphore is fair #3693

Merged
merged 1 commit into from Apr 12, 2021
Merged

Document that Semaphore is fair #3693

merged 1 commit into from Apr 12, 2021

Conversation

Darksonn
Copy link
Contributor

The fairness can be seen by noting that RwLock is implemented using it, and RwLock is fair.

@Darksonn Darksonn added T-docs Topic: documentation A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Apr 12, 2021
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Darksonn Darksonn merged commit 3a02d34 into master Apr 12, 2021
@Darksonn Darksonn deleted the semaphore-fair branch April 12, 2021 13:46
@Darksonn Darksonn mentioned this pull request Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants