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

GET_ONCE: The winnerCheck seems redundant with the Bag of listeners #99

Open
rrnewton opened this issue Oct 28, 2014 · 0 comments
Open

Comments

@rrnewton
Copy link
Member

Since the B.remove operation atomically removes the listener from the bag of listeners, it could simply return a boolean to indicate whether the operation was successful (or False if the token was already removed from the bag).

This itself would serve as a "winnerCheck" for deduplication, and remove the need for an additional atomic operation.

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