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

sync: Add is_closed method to watch sender #2991

Merged
merged 1 commit into from Oct 21, 2020

Conversation

nickkuk
Copy link
Contributor

@nickkuk nickkuk commented Oct 19, 2020

Motivation

The same as #2469; it is useful in synchronous contexts.

@nickkuk nickkuk force-pushed the watch_sender_is_closed branch 2 times, most recently from 7cf51ae to 90b80d9 Compare October 19, 2020 12:45
@Darksonn Darksonn added A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-sync Module: tokio/sync labels Oct 20, 2020
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

This seems to be correct.

tokio/src/sync/watch.rs Outdated Show resolved Hide resolved
@Darksonn Darksonn merged commit 7d7b79e into tokio-rs:master Oct 21, 2020
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 C-enhancement Category: A PR with an enhancement or bugfix. M-sync Module: tokio/sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants