| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -256,14 +256,14 @@ void AddEnvironmentCleanupHook(v8::Isolate* isolate, | |||
| 256 | 256 | ``` | |
| 257 | 257 | ||
| 258 | 258 | This function adds a hook that will run before a given Node.js instance shuts | |
| 259 | - down. If necessary, such hooks can be removed using | ||
| 260 | - `RemoveEnvironmentCleanupHook()` before they are run, which has the same | ||
| 261 | - signature. Callbacks are run in last-in first-out order. | ||
| 259 | + down. If necessary, such hooks can be removed before they are run using | ||
| 260 | + `RemoveEnvironmentCleanupHook()`, which has the same signature. Callbacks are | ||
| 261 | + run in last-in first-out order. | ||
| 262 | 262 | ||
| 263 | 263 | If necessary, there is an additional pair of `AddEnvironmentCleanupHook()` | |
| 264 | 264 | and `RemoveEnvironmentCleanupHook()` overloads, where the cleanup hook takes a | |
| 265 | 265 | callback function. This can be used for shutting down asynchronous resources, | |
| 266 | - for example any libuv handles registered by the addon. | ||
| 266 | + such as any libuv handles registered by the addon. | ||
| 267 | 267 | ||
| 268 | 268 | The following `addon.cc` uses `AddEnvironmentCleanupHook`: | |
| 269 | 269 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments