Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into dsharifi/watch-dont…
…-return-error-unseen-value
  • Loading branch information
DSharifi committed Sep 19, 2025
commit 77b85d11ac3c0a6694e5ad0b53af56a6500b505a
11 changes: 5 additions & 6 deletions tokio/src/sync/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -732,18 +732,17 @@ impl<T> Receiver<T> {
///
/// If the current value in the channel has not yet been marked seen when
/// this method is called, the method marks that value seen and returns
/// immediately. If the current value has already been marked seen, then the
/// method sleeps until a new message is sent by the [`Sender`] connected to
/// this `Receiver`, or until the [`Sender`] is dropped.
///
/// immediately. If the newest value has already been marked seen, then the
/// method sleeps until a new message is sent by a [`Sender`] connected to
/// this `Receiver`, or until all [`Sender`]s are dropped.
///
/// For more information, see
/// [*Change notifications*](self#change-notifications) in the module-level documentation.
///
/// # Errors
///
/// Returns a [`RecvError`](error::RecvError) if the channel has been closed __AND__
/// the current value is seen.
/// This method returns a [`RecvError`](error::RecvError) if and only if all [`Sender`]s
/// are dropped.
///
/// # Cancel safety
///
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.