Skip to content

Commit 8a54fa3

Browse files
yashLadhadanielleadams
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 1af4ce9 commit 8a54fa3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/async_hooks.md

+3
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)