asyncResource.bind(fn[, thisArg])


将给定的函数绑定到此 AsyncResource 的作用域中执行。

🌐 Binds the given function to execute to this AsyncResource's scope.

返回的函数将具有一个 asyncResource 属性,该属性引用函数所绑定的 AsyncResource

🌐 The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.