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

sync: add examples for SemaphorePermit, OwnedSemaphorePermit #6477

Merged
merged 5 commits into from
Apr 12, 2024

Conversation

mox692
Copy link
Member

@mox692 mox692 commented Apr 11, 2024

Add code examples for some SemaphorePermit's method to make the method's behavior more clear.

render view

@mox692 mox692 added T-docs Topic: documentation A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Apr 11, 2024
@github-actions github-actions bot added the R-loom-sync Run loom sync tests on this PR label Apr 11, 2024
tokio/src/sync/semaphore.rs Outdated Show resolved Hide resolved
tokio/src/sync/semaphore.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Nice examples!

@Darksonn Darksonn merged commit ee68c1a into tokio-rs:master Apr 12, 2024
75 checks passed
@mox692 mox692 deleted the add_semaphore_permit_examples branch April 12, 2024 15:07
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 R-loom-sync Run loom sync tests on this PR T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants