Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4db343b

Browse filesBrowse files
tony-goruyadorno
authored andcommitted
doc: add note about resource type in async_hooks
PR-URL: #41797 Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
1 parent d726a34 commit 4db343b
Copy full SHA for 4db343b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/async_hooks.md‎

Copy file name to clipboardExpand all lines: doc/api/async_hooks.md
+5Lines changed: 5 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ The `type` is a string identifying the type of resource that caused
329329
`init` to be called. Generally, it will correspond to the name of the
330330
resource's constructor.
331331

332+
Valid values are:
333+
332334
```text
333335
FSEVENTWRAP, FSREQCALLBACK, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPINCOMINGMESSAGE,
334336
HTTPCLIENTREQUEST, JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP,
@@ -337,6 +339,9 @@ TTYWRAP, UDPSENDWRAP, UDPWRAP, WRITEWRAP, ZLIB, SSLCONNECTION, PBKDF2REQUEST,
337339
RANDOMBYTESREQUEST, TLSWRAP, Microtask, Timeout, Immediate, TickObject
338340
```
339341

342+
These values can change in any Node.js release. Furthermore users of [`AsyncResource`][]
343+
likely provide other values.
344+
340345
There is also the `PROMISE` resource type, which is used to track `Promise`
341346
instances and asynchronous work scheduled by them.
342347

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.