| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for opening this!
Sorry, something went wrong.
|
Does this have any benefit over clearTimeout, which is also available in other JS environments? |
Sorry, something went wrong.
this is a wrapper around clearTimeout. The name doesn't have _, so there are three options remove right now, document as stable or document as legacy and remove later. |
Sorry, something went wrong.
Actually the legacy status is there for features that we likely won't remove ever: Lines 42 to 44 in 6fdd582 According to the collaborator guide, if it's a feature that was exposed and we have good reasons to think it's used out there (in this case we know for sure it is), we should document it as public: node/doc/guides/collaborator-guide.md Lines 313 to 317 in 7dbc0f7 Since it's almost an alias, I think the following applies: node/doc/guides/collaborator-guide.md Lines 442 to 443 in 7dbc0f7 In this case, I personally it should be documented with Legacy status, unless there are use cases where it makes sense to use it over clearTimeout (in which case it should be documented as stable). |
Sorry, something went wrong.
Sorry, something went wrong.
|
@jasnell, could you approve this pull? |
Sorry, something went wrong.
PR-URL: #40036 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #40036 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
PR-URL: #40036 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
| Back | FazBrowse Home | New Git URL |
Hello,
I noticed that the Timeout.close is not documented. We have this method from v0.9.1:
node/lib/timers.js
Lines 274 to 282 in 985e3a2
Current codebase wraps clearTimeout:
node/lib/timers.js
Lines 251 to 254 in c4096a3
This pull adds documentation for this method.