-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
sync: add Receiver::borrow_and_update
#3813
Conversation
My guess is you considered updating the |
Looking more at this, I don't see any obvious reason for |
No, that isn't the reason. It seems to me that changing the behavior of |
As it is now, the Besides that, there's also the closed flag which is stored as the least-significant bit in the version counter. |
Hmmm, yes, technically it could be a breaking change as we documented We probably should be sure to document the differences between the two We probably should tweak the |
True... though |
What do you think of the name of the function? |
It seems fine! |
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.
Thanks 👍
Add a method similar to
borrow
that updates the version counter. Using this method, it would be possible to updateWatchStream
to avoid the issue described by #3655.Fixes: #3666
Closes: #3731