-
Notifications
You must be signed in to change notification settings - Fork 416
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
Deprecated Concurrent::Atomic in lieu of Concurrent::AtomicReference. #277
Conversation
# @!macro atomic_reference | ||
# @deprecated Use Concurrent::AtomicReference instead. | ||
class Concurrent::Atomic < Concurrent::AtomicReference | ||
end |
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.
Do we need aliases for the different implementations? In my mind they are not included in the public API. Just assignment Atomic = AtomicReference
might be better since it clearly says what is the main name and the alias will also correctly report full name AtomicReference
.
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.
Done.
72c199c
to
05788e9
Compare
The test that failed in the last run is one that is known to fail intermittently. See #271 |
# @!macro atomic_reference | ||
# @deprecated Use Concurrent::AtomicReference instead. | ||
class Concurrent::Atomic < Concurrent::AtomicReference | ||
end |
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 meant something like:
module Concurrent
Atomic = AtomicReference
end
So it is actually the same class, because having two classes with same behavior but not-identical may be causing problems in comparisons when both names are used.
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.
When I've tried to do that in the past yardoc wouldn't generate documentation for the 'alias' class. That's the main reason I did the subclass. What you say makes sense, though. I'll make the change and then figure out some way to get reasonable documentation in yardoc.
@jdantonio Are you able to restart the jobs on travis? It does not work for me :( |
I was able to restart it, but I had to log in to Travis in order to make the "restart" button visible. Interestingly, Travis says that the build has restarted, but I can't tell if it actually has. |
Thanks, I saw it but it was doing nothing :/ |
Deprecated Concurrent::Atomic in lieu of Concurrent::AtomicReference.
See #261