静态方法:AsyncResource.bind(fn[, type[, thisArg]])
🌐 Static method: AsyncResource.bind(fn[, type[, thisArg]])
fn<Function> 绑定到当前执行上下文的函数。type<string> 一个可选的名称,用于与底层的AsyncResource关联。thisArg<any>
将给定函数绑定到当前执行上下文。
🌐 Binds the given function to the current execution context.