Skip to content

Commit e8d2176

Browse files
yashLadhaFlarna
authored andcommitted
async_hooks: fix imports in context example
Added imports for packages that is mentioned in the example of async_hooks context example.
1 parent f94f113 commit e8d2176

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
@@ -428,6 +428,9 @@ callback to `listen()` will look like. The output formatting is slightly more
428428
elaborate to make calling context easier to see.
429429

430430
```js
431+
const async_hooks = require('async_hooks');
432+
const fs = require('fs');
433+
const net = require('net');
431434
const { fd } = process.stdout;
432435

433436
let indent = 0;

0 commit comments

Comments
 (0)