You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are proposed (in progress) additions to AsyncLocalStorage
in Node.js that serve a dual purpose:
1. They align the API closer to the expected AsyncContext.wrap
api (AsyncLocalStorage.bind == AsyncContext.wrap). It uses
the existing naming from AsyncResource for consistency with
the existing API.
2. They eliminate the need to use AsyncResource. We will keep
AsyncResource for backwards compatibility as part of the
larger Node.js compat story, but these cover all of the
key use cases of AsyncResource for context tracking.
This should not land until nodejs/node#46387 lands.
0 commit comments