Files
Stephen Belanger 312476cb84 async_hooks: add using scopes to AsyncLocalStorage
Adds support for using scope = storage.withScope(data) to do
the equivalent of a storage.run(data, fn) with using syntax.
This enables avoiding unnecessary closures.

PR-URL: https://github.com/nodejs/node/pull/61674
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2026-03-31 10:46:04 +02:00
..
2026-03-30 17:20:29 +02:00
2026-02-19 11:14:04 +01:00
2025-10-13 10:05:45 +02:00
…
2024-10-09 06:42:16 +00:00
…
2026-01-20 15:21:04 +01:00
2026-02-02 14:02:21 +01:00
2026-01-13 10:04:44 -03:00
2025-07-18 07:55:10 -07:00
2026-02-02 14:02:22 +01:00
2025-10-04 22:08:00 +02:00
2026-01-13 10:04:48 -03:00

Internal Modules

The modules located in lib/internal directory are exclusively meant for internal usage within the Node.js core. They are not intended to be accessed via user modules require(). These modules may change at any point in time. Relying on these internal modules outside the core is not supported and can lead to unpredictable behavior.

In certain scenarios, accessing these internal modules for debugging or experimental purposes might be necessary. Node.js provides the --expose-internals flag to expose these modules to userland code. This flag only exists to assist Node.js maintainers with debugging internals. It is not meant for use outside the project.