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: reduce abbreviations in async_hooks.md #36737

Merged
merged 1 commit into from Jan 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/async_hooks.md
Expand Up @@ -63,8 +63,8 @@ asyncHook.disable();
function init(asyncId, type, triggerAsyncId, resource) { }

// Before is called just before the resource's callback is called. It can be
// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1
// time for requests (e.g. FSReqCallback).
// called 0-N times for handles (such as TCPWrap), and will be called exactly 1
// time for requests (such as FSReqCallback).
function before(asyncId) { }

// After is called just after the resource's callback has finished.
Expand Down Expand Up @@ -571,7 +571,7 @@ const server = net.createServer((conn) => {
async_hooks.executionAsyncId();

}).listen(port, () => {
// Returns the ID of a TickObject (i.e. process.nextTick()) because all
// Returns the ID of a TickObject (process.nextTick()) because all
// callbacks passed to .listen() are wrapped in a nextTick().
async_hooks.executionAsyncId();
});
Expand Down Expand Up @@ -1134,7 +1134,7 @@ added:

This methods runs a function synchronously outside of a context and return its
return value. The store is not accessible within the callback function or
the asynchronous operations created within the callback, i.e. any `getStore`
the asynchronous operations created within the callback. Any `getStore()`
call done within the callback function will always return `undefined`.

Optionally, arguments can be passed to the function. They will be passed to
Expand Down