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

tokio::sync::watch: A broadcast channel that only tracks the most recently sent value. #922

Merged
merged 7 commits into from
Feb 23, 2019

Conversation

carllerche
Copy link
Member

A single-producer, multi-consumer channel that only retains the last sent value. Values are broadcasted out.

This channel is useful for watching for changes to a value from multiple points in the code base (for example, changes to a configuration value).

@carllerche carllerche merged commit 70f4fc4 into master Feb 23, 2019
@carllerche carllerche deleted the sync-watch branch February 23, 2019 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants