diff options
author | Rich Trott <rtrott@gmail.com> | 2021-01-02 17:04:03 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-01-04 19:28:10 +0300 |
commit | ddb1cbac476372360e68c7f77470763ce4d2e5a7 (patch) | |
tree | cfbc41224d5fdb0610cd584647ff528fbe4878ee /doc/api/async_hooks.md | |
parent | 551251e0291880058c87c87f48fd3de92d51a940 (diff) |
doc: reduce abbreviations in async_hooks.md
Spell out or omit _i.e._ and _e.g._ as appropriate.
PR-URL: https://github.com/nodejs/node/pull/36737
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'doc/api/async_hooks.md')
-rw-r--r-- | doc/api/async_hooks.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index d8c3f63c3e8..464d0de9e00 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -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. @@ -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(); }); @@ -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 |