aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGerhard Stoebich <deb2001-github@yahoo.de>2018-10-31 15:45:07 +0100
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-11-02 22:58:44 +0200
commit71815317427cc9ff2f1de7785341bf09eaf85f43 (patch)
treee70f9f6ea4e8347b0c5d812507ccf3639fce854c /doc
parentdd7a3d246ded89cd0c910231c9adec279e72f9a9 (diff)
downloadandroid-node-v8-71815317427cc9ff2f1de7785341bf09eaf85f43.tar.gz
android-node-v8-71815317427cc9ff2f1de7785341bf09eaf85f43.tar.bz2
android-node-v8-71815317427cc9ff2f1de7785341bf09eaf85f43.zip
doc: correct async_hooks resource names
Correct async hooks resource names to match the implementation: `FSREQWRAP` => `FSREQCALLBACK` `TCPSERVER` => `TCPSERVERWRAP` PR-URL: https://github.com/nodejs/node/pull/24001 Refs: https://github.com/nodejs/node/pull/21971 Refs: https://github.com/nodejs/node/pull/17157 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/async_hooks.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/async_hooks.md b/doc/api/async_hooks.md
index ec2980b6a2..b208dffb77 100644
--- a/doc/api/async_hooks.md
+++ b/doc/api/async_hooks.md
@@ -63,7 +63,7 @@ function init(asyncId, type, triggerAsyncId, resource) { }
// before is called just before the resource's callback is called. It can be
// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1
-// time for requests (e.g. FSReqWrap).
+// time for requests (e.g. FSReqCallback).
function before(asyncId) { }
// 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
resource's constructor.
```text
-FSEVENTWRAP, FSREQWRAP, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
+FSEVENTWRAP, FSREQCALLBACK, GETADDRINFOREQWRAP, GETNAMEINFOREQWRAP, HTTPPARSER,
JSSTREAM, PIPECONNECTWRAP, PIPEWRAP, PROCESSWRAP, QUERYWRAP, SHUTDOWNWRAP,
-SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPSERVER, TCPWRAP, TTYWRAP,
+SIGNALWRAP, STATWATCHER, TCPCONNECTWRAP, TCPSERVERWRAP, TCPWRAP, TTYWRAP,
UDPSENDWRAP, UDPWRAP, WRITEWRAP, ZLIB, SSLCONNECTION, PBKDF2REQUEST,
RANDOMBYTESREQUEST, TLSWRAP, Microtask, Timeout, Immediate, TickObject
```