mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: remove AsyncWrap mentions from async_hooks.md
AsyncWrap is a private API and should not be mentioned in the documentation. PR-URL: https://github.com/nodejs/node/pull/33249 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
committed by
Anna Henningsen
parent
baba42c38b
commit
dab51dddc8
@@ -68,7 +68,7 @@ function before(asyncId) { }
|
||||
// After is called just after the resource's callback has finished.
|
||||
function after(asyncId) { }
|
||||
|
||||
// Destroy is called when an AsyncWrap instance is destroyed.
|
||||
// Destroy is called when the resource is destroyed.
|
||||
function destroy(asyncId) { }
|
||||
|
||||
// promiseResolve is called only for promise resources, when the
|
||||
@@ -635,7 +635,7 @@ see the details of the V8 [PromiseHooks][] API.
|
||||
|
||||
Library developers that handle their own asynchronous resources performing tasks
|
||||
like I/O, connection pooling, or managing callback queues may use the
|
||||
`AsyncWrap` JavaScript API so that all the appropriate callbacks are called.
|
||||
`AsyncResource` JavaScript API so that all the appropriate callbacks are called.
|
||||
|
||||
### Class: `AsyncResource`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user