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

Add sync::watch::Sender::same_channel() #6637

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

uklotzde
Copy link
Contributor

Align the API with sync::broadcast::Sender by adding the missing fn same_channel() method.

Motivation

Now that the Sender implements Clone this is useful.

Solution

Duplicate the Receiverss implementation.

@github-actions github-actions bot added the R-loom-sync Run loom sync tests on this PR label Jun 14, 2024
@mox692 mox692 added A-tokio Area: The main tokio crate M-sync Module: tokio/sync labels Jun 14, 2024
Copy link
Member

@mox692 mox692 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Darksonn Darksonn merged commit 3bf4f93 into tokio-rs:master Jun 15, 2024
82 checks passed
This was referenced Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync R-loom-sync Run loom sync tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants