| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b9ab986 commit 1454c02
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,24 +59,24 @@ asyncHook.disable(); | |||
| 59 | 59 | // The following are the callbacks that can be passed to createHook(). | |
| 60 | 60 | // | |
| 61 | 61 | ||
| 62 | - // init is called during object construction. The resource may not have | ||
| 63 | - // completed construction when this callback runs, therefore all fields of the | ||
| 62 | + // init() is called during object construction. The resource may not have | ||
| 63 | + // completed construction when this callback runs. Therefore, all fields of the | ||
| 64 | 64 | // resource referenced by "asyncId" may not have been populated. | |
| 65 | 65 | function init(asyncId, type, triggerAsyncId, resource) { } | |
| 66 | 66 | ||
| 67 | - // Before is called just before the resource's callback is called. It can be | ||
| 67 | + // before() is called just before the resource's callback is called. It can be | ||
| 68 | 68 | // called 0-N times for handles (such as TCPWrap), and will be called exactly 1 | |
| 69 | 69 | // time for requests (such as FSReqCallback). | |
| 70 | 70 | function before(asyncId) { } | |
| 71 | 71 | ||
| 72 | - // After is called just after the resource's callback has finished. | ||
| 72 | + // after() is called just after the resource's callback has finished. | ||
| 73 | 73 | function after(asyncId) { } | |
| 74 | 74 | ||
| 75 | - // Destroy is called when the resource is destroyed. | ||
| 75 | + // destroy() is called when the resource is destroyed. | ||
| 76 | 76 | function destroy(asyncId) { } | |
| 77 | 77 | ||
| 78 | - // promiseResolve is called only for promise resources, when the | ||
| 79 | - // `resolve` function passed to the `Promise` constructor is invoked | ||
| 78 | + // promiseResolve() is called only for promise resources, when the | ||
| 79 | + // resolve() function passed to the Promise constructor is invoked | ||
| 80 | 80 | // (either directly or through other means of resolving a promise). | |
| 81 | 81 | function promiseResolve(asyncId) { } | |
| 82 | 82 | ``` | |
@@ -107,24 +107,24 @@ asyncHook.disable(); | |||
| 107 | 107 | // The following are the callbacks that can be passed to createHook(). | |
| 108 | 108 | // | |
| 109 | 109 | ||
| 110 | - // init is called during object construction. The resource may not have | ||
| 111 | - // completed construction when this callback runs, therefore all fields of the | ||
| 110 | + // init() is called during object construction. The resource may not have | ||
| 111 | + // completed construction when this callback runs. Therefore, all fields of the | ||
| 112 | 112 | // resource referenced by "asyncId" may not have been populated. | |
| 113 | 113 | function init(asyncId, type, triggerAsyncId, resource) { } | |
| 114 | 114 | ||
| 115 | - // Before is called just before the resource's callback is called. It can be | ||
| 115 | + // before() is called just before the resource's callback is called. It can be | ||
| 116 | 116 | // called 0-N times for handles (such as TCPWrap), and will be called exactly 1 | |
| 117 | 117 | // time for requests (such as FSReqCallback). | |
| 118 | 118 | function before(asyncId) { } | |
| 119 | 119 | ||
| 120 | - // After is called just after the resource's callback has finished. | ||
| 120 | + // after() is called just after the resource's callback has finished. | ||
| 121 | 121 | function after(asyncId) { } | |
| 122 | 122 | ||
| 123 | - // Destroy is called when the resource is destroyed. | ||
| 123 | + // destroy() is called when the resource is destroyed. | ||
| 124 | 124 | function destroy(asyncId) { } | |
| 125 | 125 | ||
| 126 | - // promiseResolve is called only for promise resources, when the | ||
| 127 | - // `resolve` function passed to the `Promise` constructor is invoked | ||
| 126 | + // promiseResolve() is called only for promise resources, when the | ||
| 127 | + // resolve() function passed to the Promise constructor is invoked | ||
| 128 | 128 | // (either directly or through other means of resolving a promise). | |
| 129 | 129 | function promiseResolve(asyncId) { } | |
| 130 | 130 | ``` | |
| Back | FazBrowse Home | New Git URL |
0 commit comments