Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d05f615

Browse filesBrowse files
Trottaddaleax
authored andcommitted
doc: tidy some addons.md text
PR-URL: #34654 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5846bef commit d05f615
Copy full SHA for d05f615

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/addons.md‎

Copy file name to clipboardExpand all lines: doc/api/addons.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,14 @@ void AddEnvironmentCleanupHook(v8::Isolate* isolate,
258258
```
259259

260260
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.
264264

265265
If necessary, there is an additional pair of `AddEnvironmentCleanupHook()`
266266
and `RemoveEnvironmentCleanupHook()` overloads, where the cleanup hook takes a
267267
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.
269269

270270
The following `addon.cc` uses `AddEnvironmentCleanupHook`:
271271

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.