静态方法:AsyncLocalStorage.bind(fn)
【Static method: AsyncLocalStorage.bind(fn)】
fn<Function> 绑定到当前执行上下文的函数。- 返回:<Function> 一个在捕获的执行上下文中调用
fn的新函数。
将给定函数绑定到当前执行上下文。
【Binds the given function to the current execution context.】
【Static method: AsyncLocalStorage.bind(fn)】
fn <Function> 绑定到当前执行上下文的函数。fn 的新函数。将给定函数绑定到当前执行上下文。
【Binds the given function to the current execution context.】