静态方法:AsyncLocalStorage.bind(fn)


\Static method: AsyncLocalStorage.bind(fn)

版本历史
版本变更
v22.15.0

标记 API 稳定。

v19.8.0, v18.16.0

新增于: v19.8.0, v18.16.0

  • 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 によって変換されたページ (->オリジナル) /