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 41929a2 commit 388c7d9Copy full SHA for 388c7d9
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