Skip to content

Commit 0844935

Browse 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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent 6064b1d commit 0844935

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎doc/api/async_hooks.md‎

Lines changed: 3 additions & 0 deletions
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+
constasync_hooks=require('async_hooks');
437+
constfs=require('fs');
438+
constnet=require('net');
436439
const{fd } =process.stdout;
437440

438441
let indent =0;

0 commit comments

Comments
(0)