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 an atomic UpsertOrRemove method #85

Open
spratt opened this issue Nov 26, 2019 · 0 comments · May be fixed by #86
Open

Add an atomic UpsertOrRemove method #85

spratt opened this issue Nov 26, 2019 · 0 comments · May be fixed by #86

Comments

@spratt
Copy link

spratt commented Nov 26, 2019

I have a use case where I need to get the value stored in the map, and depending on the value I might insert (if it didn't exist already), update, or remove it entirely. Currently this isn't possible atomically, but it's not hard to implement and then Upsert and RemoveCb can be re-implemented to just call UpsertOrRemove.

@spratt spratt linked a pull request Nov 26, 2019 that will close this issue
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 a pull request may close this issue.

1 participant