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 ::eventuals::Notification::HasBeenNotified() or similar #547

Open
CodingCanuck opened this issue Aug 16, 2022 · 0 comments
Open

Add ::eventuals::Notification::HasBeenNotified() or similar #547

CodingCanuck opened this issue Aug 16, 2022 · 0 comments

Comments

@CodingCanuck
Copy link
Contributor

::eventuals::Notification (a newly introduced type) is inspired by absl::Notification.

Let's add a method to ::eventuals::Notification called HasBeenNotified() or similar, similar to the absl::Notification equivalent: https://github.com/abseil/abseil-cpp/blob/547802119dfa444540d8f2bb8a9f50bf64252a0f/absl/synchronization/notification.h#L78-L80

This would make ::eventuals::Notification useful for signifying events that happen that other code might want to query periodically, e.g. a control loop that might periodically want to check if some interesting event has happened (like server shutdown or loop cancellation).

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

No branches or pull requests

1 participant