-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix race condition in set_and_wait_for_value #457
Conversation
…lue than you set and fix potential race condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I spend half an hour playing with typing, and I now see why you made it two functions. I think this is a pretty teachable API, so happy with the signature. Spotted a further possible race condition (which would only manifest with a heavily loaded IOC and network congestion), which we might want to consider...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, just thought of another edge case! Could either merge as is and make a new issue to handle, or fix it here...
Fixes #453
set_and_wait_for_other_value
for monitoring a different value than setting