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

Added notifications to WaitableAtomic<>. #995

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

dkorolev
Copy link
Member

No description provided.

};

[[nodiscard]]
WaitableAtomicSubscriberScope Subscribe(std::function<void()> f) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: Could be a bit confusing why subscribers aren't really getting any data as a part of subscription, but I can't come up with some better (but still concise) naming to clarify it's subscription to state change signals.

Copy link
Member Author

Choose a reason for hiding this comment

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

gmta, leaving this in the back of my mind for some further PRs

(this code need a test too btw, which is not there yet!)

@mzhurovich mzhurovich merged commit 093ccd2 into C5T:stable Apr 12, 2024
4 checks passed
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.

2 participants