-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
sync: clarify the behavior of tokio::sync::watch::Receiver
#7584
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
Merged
ADD-SP
merged 17 commits into
tokio-rs:master
from
DSharifi:dsharifi/watch-dont-return-error-unseen-value
Sep 20, 2025
Merged
Changes from 7 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
91078ac
fix: do not return `RecvError` on unseen values in `changed` and `has…
DSharifi d589fab
docs: improve documentation and consistency of terms
DSharifi 0815cc3
clippy: fix indentation in doc
DSharifi cd569bf
fix typo
DSharifi e6939dd
Add example to `has_changed` for error case
DSharifi 552e952
update docs for `Ref`
DSharifi 806b08f
rename variable to `current_version`
DSharifi 77b85d1
Merge remote-tracking branch 'origin/master' into dsharifi/watch-dont…
DSharifi 0c30597
add section on differences and revert `has_changed` change
DSharifi 6ccdff3
remove trailing whitespace
DSharifi ff423e9
update error message for tests
DSharifi 2e020e2
use sync test
DSharifi a1b84b0
Apply suggestions from code review
DSharifi 9628a65
add missing backslash from suggestion
DSharifi fa6e280
Apply `expec_err` message suggestions for `changed`
DSharifi ac66fe3
Merge branch 'dsharifi/watch-dont-return-error-unseen-value' of githu…
DSharifi 8b8e478
update `expec_err` messages for has_changed tests
DSharifi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.