diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md index 3e47f366d74b5a..b74d52c5f8bcc5 100644 --- a/doc/api/async_hooks.md +++ b/doc/api/async_hooks.md @@ -329,6 +329,8 @@ The `type` is a string identifying the type of resource that caused `init` to be called. Generally, it will correspond to the name of the resource's constructor. +Valid values are: + ```text FSEVENTWRAP, FSREQCALLBACK, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPINCOMINGMESSAGE, HTTPCLIENTREQUEST, JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, @@ -337,6 +339,9 @@ TTYWRAP, UDPSENDWRAP, UDPWRAP, WRITEWRAP, ZLIB, SSLCONNECTION, PBKDF2REQUEST, RANDOMBYTESREQUEST, TLSWRAP, Microtask, Timeout, Immediate, TickObject ``` +These values can change in any Node.js release. Furthermore users of [`AsyncResource`][] +likely provide other values. + There is also the `PROMISE` resource type, which is used to track `Promise` instances and asynchronous work scheduled by them.