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
Revert the deprecation of set in SyncVar #7308
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7308?orig=1 |
@hvesalai do you have a link to the PR that did the deprecation? curious about the history here |
This issue needs to be resolved before scala/scala#6319 is merged, because this commit in that PR removes |
It was deprecated in scala/scala#560, which fixed #5623 |
@SethTisue I must say I have no recollection about this. Furthermore I grepped SyncVar from our code and we are not using it any more, so I have no vested interest. I think everybody is using the java atomic stuff. |
Maybe @heathermiller has some memory of this (why were |
Do we just close this as |
I'm just about to that point... let's do one last thing, let's rub @viktorklang's lamp and see if he appears |
For some very strange reason the set method of SyncVar has been marked for deprecation. Please remove the deprecation and do not deprecate the set method.
The set method is what makes SyncVar a var in the first place. If the SyncVar only has put, then it will effectively become a size 1 bounded queue and is no longer a variable.
SyncVar needs to act like a variable. There must be a way to set the variable twise without reading or clearing it in between.
It must support the following flow:
Alternatively stop calling it a SyncVar, and rename it to BoundedQueue1
The text was updated successfully, but these errors were encountered: