timers: deprecate active() and _unrefActive()#26760
timers: deprecate active() and _unrefActive()#26760Fishrock123 wants to merge 1 commit intonodejs:masterfrom
Conversation
67a522f to
41d48d7
Compare
doc/api/deprecations.md
Outdated
There was a problem hiding this comment.
Does timers._unrefActive() really do the same thing as timeout.refresh()? Shouldn't we only be recommending timeout.unref() as a replacement?
There was a problem hiding this comment.
It's an awkward combination of both. It is essentially "refresh this timer as unrefed". Active is the same, but refed.
Perhaps there was an extra meaning back when {un}ref() made separate libuv handles. I'm not sure but that doesn't exist anymore regardless.
41d48d7 to
696a869
Compare
doc/api/deprecations.md
Outdated
There was a problem hiding this comment.
Should this be DEP0XXX till landing (here, below and in the next section)?
There was a problem hiding this comment.
Does it really matter? ¯\_(ツ)_/¯
So long as it's updated if necessary at landing...
Another nail in the coffin here, farewell ye ol C-style apis. These apis caused numerous other issues that required far too many safeguards. This gets us one step closer to not having to worry about those issues anymore. Refs: nodejs#18066 Refs: nodejs#20298 PR-URL: nodejs#26760
696a869 to
1b80a2b
Compare
|
@nodejs/tsc I would like approval to land this as semver-minor, just like the related former pr: #20298, considering it deprecates undocumented methods. |
|
CI https://ci.nodejs.org/job/node-test-pull-request/21746/ @Fishrock123 just as a note: this was not |
|
@BridgeAR Oh, whoops. Will remember for next time. This LG to you now? CI is happy. |
|
@Fishrock123 yes, this is still LGTM. |
Another nail in the coffin here, farewell ye ol C-style apis. These apis caused numerous other issues that required far too many safeguards. This gets us one step closer to not having to worry about those issues anymore. Refs: nodejs#18066 Refs: nodejs#20298 PR-URL: nodejs#26760 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
|
Landed in 7c80f18 |
Another nail in the coffin here, farewell ye ol C-style apis. These apis caused numerous other issues that required far too many safeguards. This gets us one step closer to not having to worry about those issues anymore. Refs: #18066 Refs: #20298 PR-URL: #26760 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Another nail in the coffin here, farewell ye ol C-style apis. These apis caused numerous other issues that required far too many safeguards. This gets us one step closer to not having to worry about those issues anymore. Refs: #18066 Refs: #20298 PR-URL: #26760 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Another nail in the coffin here, farewell ye ol C-style apis.
These apis caused numerous other issues that required far too many safeguards.
This gets us one step closer to not having to worry about those issues anymore.
Refs: #18066
Refs: #20298
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes