静态方法:AsyncLocalStorage.bind(fn)


\Static method: AsyncLocalStorage.bind(fn)

新增于: v18.16.0
稳定性: 1 - 实验性的

\Stability: 1 - Experimental

  • 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.

AltStyle によって変換されたページ (->オリジナル) /