Skip to content

Documentation phrase about panics in mpsc channel may be obsolete #37915

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
vi opened this issue Nov 21, 2016 · 1 comment · Fixed by #37941
Closed

Documentation phrase about panics in mpsc channel may be obsolete #37915

vi opened this issue Nov 21, 2016 · 1 comment · Fixed by #37941

Comments

@vi
Copy link
Contributor

vi commented Nov 21, 2016

https://doc.rust-lang.org/std/sync/mpsc/fn.sync_channel.html#main

As with asynchronous channels, all senders will panic in send if the Receiver has been destroyed.

https://doc.rust-lang.org/std/sync/mpsc/struct.SyncSender.html#send.v

This function will never panic, but it may return Err if the Receiver has disconnected and is no longer able to receive information.

@Cobrand
Copy link
Contributor

Cobrand commented Nov 22, 2016

I will take care of this if no one minds

Cobrand added a commit to Cobrand/rust that referenced this issue Dec 7, 2016
Closes rust-lang#37915

This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected
frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 12, 2016
…aumeGomez

Improve and fix mpsc documentation

Closes rust-lang#37915

This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected

r? @steveklabnik
frewsxcv added a commit to frewsxcv/rust that referenced this issue Dec 12, 2016
…aumeGomez

Improve and fix mpsc documentation

Closes rust-lang#37915

This commit enhances documentation with several links and
fixes an error in the `sync_channel` documentation as well:
`send` doesn't panic when the senders are all disconnected

r? @steveklabnik
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants