Adding new globals, especially non-standard ones, should always be carefully considered and weighed.
That said, I want to propose that we make AsyncLocalStorage a global in Node.js in order to better separate it conceptually from the async_hook API and generally just encourage it's use more.
@nodejs/tsc @nodejs/async_hooks @Qard @mcollina
Adding new globals, especially non-standard ones, should always be carefully considered and weighed.
That said, I want to propose that we make
AsyncLocalStoragea global in Node.js in order to better separate it conceptually from theasync_hookAPI and generally just encourage it's use more.@nodejs/tsc @nodejs/async_hooks @Qard @mcollina