diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 66534ca85029e6..5ac4461ec33bb1 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`.