diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 70c31c8a4239ab..5e9f15857751ad 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -170,6 +170,11 @@ provided by AsyncHooks itself. The logging should then be skipped when it was the logging itself that caused AsyncHooks callback to call. By doing this the otherwise infinite recursion is broken. +### Class: `AsyncHook` + +The class `AsyncHook` exposes an interface for tracking lifetime events +of asynchronous operations. + #### `asyncHook.enable()` * Returns: {AsyncHook} A reference to `asyncHook`.