Skip to content

Commit

Permalink
async_hooks: fix imports in context example
Browse files Browse the repository at this point in the history
Added imports for packages that is mentioned in the example of
async_hooks context example.

PR-URL: nodejs#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>
  • Loading branch information
yashLadha authored and VoltrexKeyva committed Feb 3, 2022
1 parent 8597fdb commit d56449c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,9 @@ callback to `listen()` will look like. The output formatting is slightly more
elaborate to make calling context easier to see.

```js
const async_hooks = require('async_hooks');
const fs = require('fs');
const net = require('net');
const { fd } = process.stdout;

let indent = 0;
Expand Down

0 comments on commit d56449c

Please sign in to comment.