--experimental-async-context-frame


稳定性: 1 - 实验性的

¥Stability: 1 - Experimental

启用由 AsyncContextFrame 支持的 AsyncLocalStorage,而不是依赖于 async_hooks 的默认实现。这个新模型的实现方式非常不同,因此上下文数据在应用内的流动方式可能会有所不同。因此,目前建议在生产中使用它之前确保你的应用行为不受此更改的影响。

¥Enables the use of AsyncLocalStorage backed by AsyncContextFrame rather than the default implementation which relies on async_hooks. This new model is implemented very differently and so could have differences in how context data flows within the application. As such, it is presently recommended to be sure your application behaviour is unaffected by this change before using it in production.