Skip to content

Commit d729f3e

Browse files
Flarnatargos
authored andcommitted
doc: correct async_hooks resource names
Correct async hooks resource names to match the implementation: `FSREQWRAP` => `FSREQCALLBACK` `TCPSERVER` => `TCPSERVERWRAP` PR-URL: #24001 Refs: #21971 Refs: #17157 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent b3f3ebf commit d729f3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/async_hooks.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function init(asyncId, type, triggerAsyncId, resource) { }
6363

6464
// before is called just before the resource's callback is called. It can be
6565
// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1
66-
// time for requests (e.g. FSReqWrap).
66+
// time for requests (e.g. FSReqCallback).
6767
function before(asyncId) { }
6868

6969
// after is called just after the resource's callback has finished.
@@ -236,9 +236,9 @@ The `type` is a string identifying the type of resource that caused
236236
resource's constructor.
237237

238238
```text
239-
FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
239+
FSEVENTWRAP, FSREQCALLBACK, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
240240
JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP,
241-
SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPSERVER, TCPWRAP, TTYWRAP,
241+
SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPSERVERWRAP, TCPWRAP, TTYWRAP,
242242
UDPSENDWRAP, UDPWRAP, WRITEWRAP, ZLIB, SSLCONNECTION, PBKDF2REQUEST,
243243
RANDOMBYTESREQUEST, TLSWRAP, Microtask, Timeout, Immediate, TickObject
244244
```

0 commit comments

Comments
 (0)