File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,14 +258,14 @@ void AddEnvironmentCleanupHook(v8::Isolate* isolate,
258
258
```
259
259
260
260
This function adds a hook that will run before a given Node.js instance shuts
261
- down. If necessary, such hooks can be removed using
262
- ` RemoveEnvironmentCleanupHook() ` before they are run , which has the same
263
- signature. Callbacks are run in last-in first-out order.
261
+ down. If necessary, such hooks can be removed before they are run using
262
+ ` RemoveEnvironmentCleanupHook() ` , which has the same signature. Callbacks are
263
+ run in last-in first-out order.
264
264
265
265
If necessary, there is an additional pair of ` AddEnvironmentCleanupHook() `
266
266
and ` RemoveEnvironmentCleanupHook() ` overloads, where the cleanup hook takes a
267
267
callback function. This can be used for shutting down asynchronous resources,
268
- for example any libuv handles registered by the addon.
268
+ such as any libuv handles registered by the addon.
269
269
270
270
The following ` addon.cc ` uses ` AddEnvironmentCleanupHook ` :
271
271
You can’t perform that action at this time.
0 commit comments