-
-
Couldn't load subscription status.
- Fork 2.8k
sync: improve the docs of sync::watch
#7601
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
sync: improve the docs of sync::watch
#7601
Conversation
Since `watch` is a multi-producer channel its documentation should talk about many/all Senders. RecvError will be returned only when all senders are dropped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Done! I applied the commit from #7600 here |
|
Changed to Draft because it seems there are more doc items to update |
…ed only when all senders and all receivers are dropped
…be set only when all senders of the channel are dropped
…s in the channel are dropped
…ht be more than one senders in the channel
…osed only when all senders in the watch channel are closed
1d6458b to
c60f83e
Compare
|
The PR is ready for review. |
Co-authored-by: Alice Ryhl <aliceryhl@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
sync::watch
Motivation
Since
watchis a multi-producer channel its documentation should talk about many/all Senders.Solution
Update the documentation for Receiver::changed() that RecvError will be returned only when all senders are dropped.