asyncHook.disable()


从要执行的 AsyncHook 回调全局池中禁用给定 AsyncHook 实例的回调。一旦一个钩子被禁用,则它在启用之前不会被再次调用。

¥Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled.

为了 API 一致性,disable() 也返回 AsyncHook 实例。

¥For API consistency disable() also returns the AsyncHook instance.