Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Drop impl to futures::channel::mpsc::UnboundedReceiver
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.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters