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

Implemented hash_receiver method on mpsc #1962

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

Kixunil
Copy link
Contributor

@Kixunil Kixunil commented Nov 7, 2019

This method allows the sender to obtain the hash of the receiver
(actually Option<pointer to shared structure>). This is useful if one
wants to put the senders into HashSet or HashMap, using a newtype
pattern.

Closes #1177

This method allows the sender to obtain the hash of the receiver
(actually `Option<pointer to shared structure>`). This is useful if one
wants to put the senders into `HashSet` or `HashMap`, using a newtype
pattern.

Closes rust-lang#1177
@Kixunil
Copy link
Contributor Author

Kixunil commented Nov 7, 2019

Hmm, GitHub tells me that the branch is out-of-date, should I rebase?

@Kixunil
Copy link
Contributor Author

Kixunil commented Nov 7, 2019

The tests failed due to CI bug. :(

@cramertj
Copy link
Member

This seems fine to me, thanks!

@cramertj cramertj merged commit da6b3dc into rust-lang:master Nov 22, 2019
@Kixunil
Copy link
Contributor Author

Kixunil commented Nov 22, 2019

Thank you too for merging! :)

Do you have any estimate when a new version containing the change could be released? Possibly even some way to subscribe to its publication?

@Nemo157
Copy link
Member

Nemo157 commented Nov 22, 2019

@Kixunil you can watch releases on the repo under the watch button in the top right.

@Kixunil
Copy link
Contributor Author

Kixunil commented Nov 22, 2019

Thanks!

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.

Allow mpsc senders to be stored in hash sets/maps
3 participants