Skip to content

Commit c439d83

Browse files
HarshithaKPtargos
authored andcommittedApr 22, 2020
doc: add entry for AsyncHook class
fixes: #31661 PR-URL: #31865 Fixes: #31661 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e6e38ec commit c439d83

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)
Please sign in to comment.