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 Drop impl to futures::channel::mpsc::UnboundedReceiver #2064

Merged
merged 1 commit into from
Feb 6, 2020
Merged

Add Drop impl to futures::channel::mpsc::UnboundedReceiver #2064

merged 1 commit into from
Feb 6, 2020

Conversation

adamlesinski
Copy link

Pre-0.3.2, clients could expect to drop an UnboundedReceiver and observe
that incoming messages are dropped and the channel closed.

This change re-introduces this behavior for UnboundedReceiver and adds
tests to prevent regressions.

Note that a drop impl already exists for BoundedReceiver.

Pre-0.3.2, clients could expect to drop an UnboundedReceiver and observe
that incoming messages are dropped and the channel closed.

This change re-introduces this behavior for UnboundedReceiver and adds
tests to prevent regressions.

Note that a drop impl already exists for BoundedReceiver.
@adamlesinski
Copy link
Author

CI seems to be broken from a previous commit. The cargo clippy error is unrelated to this change.

@cramertj
Copy link
Member

cramertj commented Feb 6, 2020

Seems good to me to continue to match the behavior of BoundedReceiver.

@cramertj cramertj merged commit 7979543 into rust-lang:master Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants