Skip to content

Commit 3fa57ee

Browse files
HarshithaKPMylesBorins
authored andcommitted
doc: add entry for AsyncHook class
fixes: #31661 PR-URL: #31865 Fixes: #31661 Reviewed-By: Stephen Belanger <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 38329bd commit 3fa57ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/async_hooks.md

+5
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ provided by AsyncHooks itself. The logging should then be skipped when
170170
it was the logging itself that caused AsyncHooks callback to call. By
171171
doing this the otherwise infinite recursion is broken.
172172

173+
### Class: `AsyncHook`
174+
175+
The class `AsyncHook` exposes an interface for tracking lifetime events
176+
of asynchronous operations.
177+
173178
#### `asyncHook.enable()`
174179

175180
* Returns: {AsyncHook} A reference to `asyncHook`.

0 commit comments

Comments
 (0)