-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc,async_hooks: simplify async_hooks overview #31660
Conversation
To be honest, I don’t think this improves the documentation … I do feel like it makes sense to give examples of which asynchronous resources call their callback multiple times, to clarify that there are conceptually different types of async resources that are not explicitly differentiated by async_hooks but that consumers may still want to treat differently. |
I have to agree with @addaleax. While the existing text here isn't great, I don't think the proposal is an improvement. |
9174c5f
to
5708180
Compare
@addaleax @jasnell I've removed the changes that you commented on. The remaining change is very small, but if we all agree it's an improvement (however small), then great. And if not, I'll probably close this and maybe come back to it at a later date. I do think the async_hooks documentation is calling out to be improved, but yeah, please stop me from making it worse. :-D |
Explain the purpose of async_hooks simply in the overview. PR-URL: nodejs#31660 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
5708180
to
7cbec42
Compare
Landed in 7cbec42 |
Explain the purpose of async_hooks simply in the overview. PR-URL: #31660 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Explain the purpose of async_hooks simply in the overview. PR-URL: #31660 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Explain the purpose of async_hooks simply in the overview. PR-URL: #31660 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Explain the purpose of async_hooks simply in the overview. PR-URL: #31660 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
The text defining asynchronous resource goes into somewhat laborious
detail to say, basically, that a callback may be called any number of
times. This change makes the text more direct.
Explain the purpose of async_hooks simply in the overview.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes