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

Return SendError from Sender::send on disconnect. #901

Closed
wants to merge 3 commits into from
Closed

Return SendError from Sender::send on disconnect. #901

wants to merge 3 commits into from

Conversation

cmaves
Copy link

@cmaves cmaves commented Oct 29, 2020

Currently the send method for Sender<T> returns a Future that never finishes if the channel is disconnected. This issue was brought up and this fix was proposed in issue #880.
This changes brings the send method more inline with what the standard library's sender structs do, where they return an error on disconnect.
If this pull request's fix isn't appropriate then hopefully it can at least get the ball rolling on something else.

@Keruspe
Copy link
Member

Keruspe commented Dec 1, 2020

Superseded by #915 I guess?

@cmaves
Copy link
Author

cmaves commented Dec 1, 2020

Yeah, that PR negates the need for this one.

@cmaves cmaves closed this Dec 1, 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