静态方法:AsyncResource.bind(fn[, type[, thisArg]])


¥Static method: AsyncResource.bind(fn[, type[, thisArg]])

  • fn <Function> 绑定到当前执行上下文的函数。

    ¥fn <Function> The function to bind to the current execution context.

  • type <string> 与底层 AsyncResource 关联的可选名称。

    ¥type <string> An optional name to associate with the underlying AsyncResource.

  • thisArg <any>

将给定函数绑定到当前执行上下文。

¥Binds the given function to the current execution context.