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

Add blocking_recv method to UnboundedReceiver, similar to Receiver::blocking_recv #3262

Merged
merged 1 commit into from Dec 12, 2020

Conversation

sunjay
Copy link
Contributor

@sunjay sunjay commented Dec 12, 2020

I'm upgrading one of my crates to tokio 0.3 and noticed that there is no UnboundedReceiver::blocking_recv even though such a method exists on Receiver. This PR copies the method over and updates the docs so now both receivers have that method.

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.

Thanks!

@carllerche carllerche merged commit df20c16 into tokio-rs:master Dec 12, 2020
@sunjay sunjay deleted the unbounded_blocking_recv branch December 12, 2020 16:48
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Dec 13, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants