asyncResource.runInAsyncScope(fn[, thisArg, ...args])
fn<Function> 在此异步资源的执行上下文中调用的函数。thisArg<any> 用于函数调用的接收对象。...args<any> 可选参数,传递给函数。
在异步资源的执行上下文中使用提供的参数调用提供的函数。这将建立上下文,触发 AsyncHooks 的回调前钩子,调用函数,触发 AsyncHooks 的回调后钩子,然后恢复原始的执行上下文。
【Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks before callbacks, call the function, trigger the AsyncHooks after callbacks, and then restore the original execution context.】