Skip to content

doc: hide undocumented object artifacts in async_hooks examples

The examples show process.stdout.fd as a means to use synchronous writes in async_hooks context. However this is an undocumented field, so showcase a file write example instead.

Fixes: https://github.com/nodejs/node/issues/22873

/cc @vsemozhetbyt @bnoordhuis @nodejs/documentation

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading