We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
path
async_hooks.executionAsyncId()
1 parent f7d6e9b commit 629132dCopy full SHA for 629132d
doc/api/async_hooks.md
@@ -768,6 +768,7 @@ import { executionAsyncId } from 'node:async_hooks';
768
import fs from 'node:fs';
769
770
console.log(executionAsyncId()); // 1 - bootstrap
771
+const path = '.';
772
fs.open(path, 'r', (err, fd) => {
773
console.log(executionAsyncId()); // 6 - open()
774
});
@@ -778,6 +779,7 @@ const async_hooks = require('node:async_hooks');
778
779
const fs = require('node:fs');
780
781
console.log(async_hooks.executionAsyncId()); // 1 - bootstrap
782
783
784
console.log(async_hooks.executionAsyncId()); // 6 - open()
785
0 commit comments