@@ -63,8 +63,8 @@ asyncHook.disable();
63
63
function init (asyncId , type , triggerAsyncId , resource ) { }
64
64
65
65
// 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).
68
68
function before (asyncId ) { }
69
69
70
70
// After is called just after the resource's callback has finished.
@@ -569,7 +569,7 @@ const server = net.createServer((conn) => {
569
569
async_hooks .executionAsyncId ();
570
570
571
571
}).listen (port, () => {
572
- // Returns the ID of a TickObject (i.e. process.nextTick()) because all
572
+ // Returns the ID of a TickObject (process.nextTick()) because all
573
573
// callbacks passed to .listen() are wrapped in a nextTick().
574
574
async_hooks .executionAsyncId ();
575
575
});
@@ -1114,7 +1114,7 @@ added: v13.10.0
1114
1114
1115
1115
This methods runs a function synchronously outside of a context and return its
1116
1116
return value. The store is not accessible within the callback function or
1117
- the asynchronous operations created within the callback, i.e. any ` getStore `
1117
+ the asynchronous operations created within the callback. Any ` getStore() `
1118
1118
call done within the callback function will always return ` undefined ` .
1119
1119
1120
1120
Optionally, arguments can be passed to the function. They will be passed to
0 commit comments