-
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: add example function isDead to cluster #28362
Conversation
[x] documentation is changed or added
@nodejs/documentation |
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.
Welcome @jessecogollo and thanks for the pull request! It may be possible to simplify/shorten this one a bit? It's probably fine the way it is though? I'm not sure so I pinged the documentation team. Thanks again!
Thank you @Trott. |
doc/api/cluster.md
Outdated
process.kill(process.pid); | ||
}).listen(8000); | ||
|
||
// Make http://localhost:8000 to ckeck isDead method. |
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.
nit: typo
// Make http://localhost:8000 to ckeck isDead method. | |
// Make http://localhost:8000 to check isDead method. |
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.
"Make" means "Make a connection to" here?
// Make http://localhost:8000 to ckeck isDead method. | |
// Connect to http://localhost:8000 to check isDead(). |
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.
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.
LGTM with typo fix. Seems that it could also be simplified/shortened a bit, but that's probably not a big priority. Thanks for the code!
PR-URL: nodejs#28362 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Landed in e2d445b. Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
PR-URL: #28362 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
[x] added example documentation