静态方法:AsyncLocalStorage.bind(fn)


¥Static method: AsyncLocalStorage.bind(fn)

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

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

  • 返回:<Function> 在捕获的执行上下文中调用 fn 的新函数。

    ¥Returns: <Function> A new function that calls fn within the captured execution context.

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

¥Binds the given function to the current execution context.