Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fa54f01

Browse filesBrowse files
Trottdanielleadams
authored andcommitted
doc: reduce abbreviations in async_hooks.md
Spell out or omit _i.e._ and _e.g._ as appropriate. PR-URL: #36737 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 56c00d7 commit fa54f01
Copy full SHA for fa54f01

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ asyncHook.disable();
6363
function init(asyncId, type, triggerAsyncId, resource) { }
6464

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

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

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

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.