node/doc/api
Anna Henningsen 8f39881b74
async_hooks: use resource objects for Promises
Use `PromiseWrap` resource objects whose lifetimes are tied to
the `Promise` instances themselves to track promises, and have
a `.promise` getter that points to the `Promise` and a `.parent`
property that points to the parent Promise’s resource object,
if there is any.

The properties are implemented as getters for internal fields
rather than normal properties in the hope that it helps keep
performance for the common case that async_hooks users will
often not inspect them.

PR-URL: https://github.com/nodejs/node/pull/13452
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2017-06-08 23:59:58 +02:00
..
_toc.md doc: add async_hooks, n-api to _toc.md and all.md 2017-06-02 01:13:46 +03:00
addons.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
all.md doc: add async_hooks, n-api to _toc.md and all.md 2017-06-02 01:13:46 +03:00
assert.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
async_hooks.md async_hooks: use resource objects for Promises 2017-06-08 23:59:58 +02:00
buffer.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
child_process.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
cli.md 2017-06-06, Version 6.11.0 'Boron' (LTS) 2017-06-06 16:30:15 -04:00
cluster.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
console.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
crypto.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
debugger.md doc: remove unused/duplicated reference links 2017-05-21 00:10:47 +02:00
deprecations.md repl: remove unused function convertToContext 2017-06-05 13:30:05 +03:00
dgram.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
dns.md dns: support promisified lookup(Service) 2017-05-09 15:01:46 +02:00
documentation.md doc: replace uses of you and other style nits 2017-04-28 07:57:11 -07:00
domain.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
errors.md doc: fix ordering error in errors.md 2017-05-31 10:21:29 -07:00
events.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
fs.md fs: expose Stats times as Numbers 2017-06-07 16:15:45 -04:00
globals.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
http.md http: overridable keep-alive behavior of Agent 2017-06-07 14:41:22 -04:00
https.md doc: Add URL argument with http/https request 2017-06-06 22:39:10 -07:00
index.md doc: git mv to .md 2016-04-20 16:34:27 -07:00
inspector.md inspector: allow --inspect=host:port from js 2017-06-06 14:41:17 -07:00
modules.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
n-api.md doc: fix typo "ndapi" in n-api.md 2017-06-06 14:11:09 -04:00
net.md lib: return this from net.Socket.end() 2017-06-07 12:54:00 -07:00
os.md doc: make the style of notes consistent 2017-05-25 18:49:41 -04:00
path.md win, doc: document per-drive current working dir 2017-06-06 11:19:23 +02:00
process.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
punycode.md doc: sort bottom-of-file markdown links 2017-05-08 09:30:55 -07:00
querystring.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
readline.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
repl.md doc: unify spaces in object literals 2017-06-03 01:56:19 +03:00
stream.md doc,stream: clarify 'data', pipe() and 'readable' 2017-06-05 10:19:04 +02:00
string_decoder.md doc: use destructuring in code examples 2017-06-03 01:33:55 +03:00
synopsis.md cmd: support dash as stdin alias 2017-05-23 20:41:13 +02:00
timers.md timers: add promisify support 2017-05-09 15:01:44 +02:00
tls.md doc: corrects reference to tlsClientError 2017-06-08 14:41:37 +02:00
tracing.md src: Node Tracing Controller 2016-12-20 12:31:09 -08:00
tty.md doc: add some info on tty#setRawMode() 2016-12-08 13:39:45 -05:00
url.md doc: add require modules in url.md 2017-06-03 13:21:52 +02:00
util.md doc: use prefer-rest-params eslint rule in docs 2017-06-05 14:27:57 +03:00
v8.md 2017-05-30, Version 8.0.0 (Current) 2017-05-30 10:58:31 -07:00
vm.md doc: refine spaces in example from vm.md 2017-06-02 16:47:47 +03:00
zlib.md doc: fix code examples in zlib.md 2017-06-02 21:51:38 +03:00