Skip to content
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

Merged
merged 1 commit into from
Feb 8, 2020

Conversation

Trott
Copy link
Member

@Trott Trott commented Feb 6, 2020

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), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added async_hooks Issues and PRs related to the async hooks subsystem. doc Issues and PRs related to the documentations. labels Feb 6, 2020
@Trott Trott changed the title Async hooks overview doc,async_hooks: simplify async_hooks overview Feb 6, 2020
@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 6, 2020
@addaleax
Copy link
Member

addaleax commented Feb 7, 2020

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.

doc/api/async_hooks.md Outdated Show resolved Hide resolved
@jasnell
Copy link
Member

jasnell commented Feb 7, 2020

I have to agree with @addaleax. While the existing text here isn't great, I don't think the proposal is an improvement.

@Trott Trott removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 7, 2020
@Trott
Copy link
Member Author

Trott commented Feb 7, 2020

@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

@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 8, 2020
Explain the purpose of async_hooks simply in the overview.

PR-URL: nodejs#31660
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@Trott Trott merged commit 7cbec42 into nodejs:master Feb 8, 2020
@Trott
Copy link
Member Author

Trott commented Feb 8, 2020

Landed in 7cbec42

@Trott Trott deleted the async-hooks-overview branch February 8, 2020 16:05
codebytere pushed a commit that referenced this pull request Feb 17, 2020
Explain the purpose of async_hooks simply in the overview.

PR-URL: #31660
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@codebytere codebytere mentioned this pull request Feb 17, 2020
codebytere pushed a commit that referenced this pull request Mar 15, 2020
Explain the purpose of async_hooks simply in the overview.

PR-URL: #31660
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
codebytere pushed a commit that referenced this pull request Mar 17, 2020
Explain the purpose of async_hooks simply in the overview.

PR-URL: #31660
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@codebytere codebytere mentioned this pull request Mar 17, 2020
codebytere pushed a commit that referenced this pull request Mar 30, 2020
Explain the purpose of async_hooks simply in the overview.

PR-URL: #31660
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
async_hooks Issues and PRs related to the async hooks subsystem. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants