| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -768,6 +768,7 @@ import { executionAsyncId } from 'node:async_hooks'; | |||
| 768 | 768 | import fs from 'node:fs'; | |
| 769 | 769 | ||
| 770 | 770 | console.log(executionAsyncId()); // 1 - bootstrap | |
| 771 | + const path = '.'; | ||
| 771 | 772 | fs.open(path, 'r', (err, fd) => { | |
| 772 | 773 | console.log(executionAsyncId()); // 6 - open() | |
| 773 | 774 | }); | |
@@ -778,6 +779,7 @@ const async_hooks = require('node:async_hooks'); | |||
| 778 | 779 | const fs = require('node:fs'); | |
| 779 | 780 | ||
| 780 | 781 | console.log(async_hooks.executionAsyncId()); // 1 - bootstrap | |
| 782 | + const path = '.'; | ||
| 781 | 783 | fs.open(path, 'r', (err, fd) => { | |
| 782 | 784 | console.log(async_hooks.executionAsyncId()); // 6 - open() | |
| 783 | 785 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments