| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -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. | |
@@ -571,7 +571,7 @@ const server = net.createServer((conn) => { | |||
| 571 | 571 | async_hooks.executionAsyncId(); | |
| 572 | 572 | ||
| 573 | 573 | }).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 | ||
| 575 | 575 | // callbacks passed to .listen() are wrapped in a nextTick(). | |
| 576 | 576 | async_hooks.executionAsyncId(); | |
| 577 | 577 | }); | |
@@ -1134,7 +1134,7 @@ added: | |||
| 1134 | 1134 | ||
| 1135 | 1135 | This methods runs a function synchronously outside of a context and return its | |
| 1136 | 1136 | 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()` | ||
| 1138 | 1138 | call done within the callback function will always return `undefined`. | |
| 1139 | 1139 | ||
| 1140 | 1140 | Optionally, arguments can be passed to the function. They will be passed to | |
| Back | FazBrowse Home | New Git URL |
0 commit comments