Skip to content

Commit dab5c38

Browse files
puzpuzpuzcodebytere
authored andcommitted
doc: remove AsyncWrap mentions from async_hooks.md
AsyncWrap is a private API and should not be mentioned in the documentation. PR-URL: #33249 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0572943 commit dab5c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/async_hooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function before(asyncId) { }
6868
// After is called just after the resource's callback has finished.
6969
function after(asyncId) { }
7070

71-
// Destroy is called when an AsyncWrap instance is destroyed.
71+
// Destroy is called when the resource is destroyed.
7272
function destroy(asyncId) { }
7373

7474
// promiseResolve is called only for promise resources, when the
@@ -635,7 +635,7 @@ see the details of the V8 [PromiseHooks][] API.
635635

636636
Library developers that handle their own asynchronous resources performing tasks
637637
like I/O, connection pooling, or managing callback queues may use the
638-
`AsyncWrap` JavaScript API so that all the appropriate callbacks are called.
638+
`AsyncResource` JavaScript API so that all the appropriate callbacks are called.
639639

640640
### Class: `AsyncResource`
641641

0 commit comments

Comments
 (0)