new AsyncLocalStorage([options])
版本历史
| 版本 | 变更 |
|---|---|
| v24.0.0 | 添加 |
| v19.7.0, v18.16.0 | 移除了实验性的 onPropagate 选项。 |
| v19.2.0, v18.13.0 | 添加选项 onPropagate。 |
| v13.10.0, v12.17.0 | 新增于: v13.10.0, v12.17.0 |
-
options<Object>
创建 AsyncLocalStorage 的新实例。Store 仅在 run() 调用内或 enterWith() 调用后提供。
\Creates a new instance of AsyncLocalStorage. Store is only provided within a
run() call or after an enterWith() call.