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: implement try_recv for mpsc channels #4113

Merged
merged 5 commits into from
Sep 18, 2021
Merged

sync: implement try_recv for mpsc channels #4113

merged 5 commits into from
Sep 18, 2021

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Sep 15, 2021

Implement mpsc::Receiver::try_recv and mpsc::UnboundedReceiver::try_recv.

Closes: #3350
Closes: #3639

@Darksonn Darksonn added A-tokio Area: The main tokio crate M-sync Module: tokio/sync R-loom Run loom tests on this PR labels Sep 15, 2021
Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

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

Looks good to me. Straightforward. Thanks.

Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

no concerns from me, either --- this looks great. thanks for the detailed comments!

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 Run loom tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add back mpsc try_recv
3 participants