GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: declare `path` on example of `async_hooks.executionAsyncId()` · nodejs/node@388c7d9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • async_hooks.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ import { executionAsyncId } from 'node:async_hooks';
768768
import fs from 'node:fs';
769769

770770
console.log(executionAsyncId()); // 1 - bootstrap
771+
const path = '.';
771772
fs.open(path, 'r', (err, fd) => {
772773
console.log(executionAsyncId()); // 6 - open()
773774
});
@@ -778,6 +779,7 @@ const async_hooks = require('node:async_hooks');
778779
const fs = require('node:fs');
779780

780781
console.log(async_hooks.executionAsyncId()); // 1 - bootstrap
782+
const path = '.';
781783
fs.open(path, 'r', (err, fd) => {
782784
console.log(async_hooks.executionAsyncId()); // 6 - open()
783785
});

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.