-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
timers: always set _destroyed #29595
Conversation
You’re probably thinking of https://github.com/nodejs/node/pull/27345/files. I’m still intending to merge. Personal things have been im the way. |
Yeah, that one. @apapirovski Would you be ok with this landing and then that rebasing once you have time? |
@Fishrock123 yup, totally! |
Required for other potential changes. This should make it so we can always just check _destroyed to check if a timer has been ended.
f51e238
to
57e80a7
Compare
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.
Longer term, if this is going to continue being an API accessible to the public, we should put it behind a non _
'prefixed property.
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.
looks good
The lint failure was my mistake and was force-pushed out. I'll kick off CI here again. Sorry. |
Landed in a861b84 |
Required for other potential changes. This should make it so we can always just check _destroyed to check if a timer has been ended. PR-URL: #29595 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sorry, I forgot to address this. I don't recall exactly why this wasn't just a Symbol but this property isn't particularly intended to be public. This change exists to facilitate other core functionality / cleanup. |
Required for other potential changes. This should make it so we can always just check _destroyed to check if a timer has been ended. PR-URL: #29595 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Required for other potential changes. This should make it so we can always just check _destroyed to check if a timer has been ended. PR-URL: #29595 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Required for other potential changes.
This should make it so we can always just check _destroyed to check if a timer has been ended.
I think this was included in some other PR previously, perhaps it wasn't merged or something.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes