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 0844935

Browse filesBrowse files
yashLadharuyadorno
authored andcommitted
async_hooks: fix imports in context example
Added imports for packages that is mentioned in the example of async_hooks context example. PR-URL: #39229 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
1 parent 6064b1d commit 0844935
Copy full SHA for 0844935

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ callback to `listen()` will look like. The output formatting is slightly more
433433
elaborate to make calling context easier to see.
434434

435435
```js
436+
const async_hooks = require('async_hooks');
437+
const fs = require('fs');
438+
const net = require('net');
436439
const { fd } = process.stdout;
437440

438441
let indent = 0;

0 commit comments

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