0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Andrey Pechkurov 6510a741c4 async_hooks: add store arg in AsyncLocalStorage
This commit introduces store as the first argument in
AsyncLocalStorage's run methods. The change is motivated by the
following expectation: most users are going to use a custom object
as the store and an extra Map created by the previous implementation
is an overhead for their use case.

Important note. This is a backwards incompatible change.
It was discussed and agreed an incompatible change is ok
since the API is still experimental and the modified
methods were only added within the last week so usage
will be minimal to none.

PR-URL: https://github.com/nodejs/node/pull/31930
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2020-02-27 15:00:23 -05:00
..
addons.md doc: reword section title in addons.md 2020-02-12 00:20:34 -08:00
assert.md doc: update assert.rejects() docs with a validation function example 2020-02-24 03:49:12 -08:00
async_hooks.md async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
buffer.md doc: correct getting an ArrayBuffer's length 2020-02-07 12:06:42 +01:00
child_process.md doc: fix several child_process doc typos 2020-01-19 13:12:14 -05:00
cli.md cli: --perf-prof only works on Linux 2020-02-23 10:08:22 -08:00
cluster.md doc,cluster: use code markup/markdown in headers 2019-12-26 21:37:25 -08:00
console.md doc,console: use code markup/markdown in headers 2019-12-26 21:37:26 -08:00
crypto.md doc,crypto: re-document oaepLabel option 2020-02-23 01:25:40 -04:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md http: move OutboundMessage.prototype.flush to EOL 2020-02-24 08:46:37 -08:00
dgram.md doc: standardize on "host name" in dgram.md 2020-01-14 10:17:19 -08:00
dns.md doc: improve dns introduction 2019-12-27 06:14:41 -08:00
documentation.md
domain.md doc,domain: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
errors.md vm: implement vm.measureMemory() for per-context memory measurement 2020-02-26 17:52:39 +08:00
esm.md module: package "exports" error refinements 2020-02-18 13:34:40 +02:00
events.md 2020-01-07, Version v13.6.0 (Current) 2020-01-08 00:10:43 +01:00
fs.md fs: add fs/promises alias module 2020-02-18 22:15:50 -08:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md doc: clarify http2.connect authority details 2020-02-26 16:19:49 -08:00
http.md doc: reword possessive form of Node.js in http.md 2020-02-17 17:32:59 -08:00
https.md doc: fix typos in doc/api/https.md 2020-02-16 16:58:39 +01:00
index.md wasi: introduce initial WASI support 2019-11-30 18:06:39 +01:00
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md
modules.md doc: reword possessive form of Node.js in modules.md 2020-02-12 00:20:39 -08:00
n-api.md n-api: rename 'promise' parameter to 'value' 2020-01-30 21:24:11 -08:00
net.md doc,net: reword Unix domain path paragraph in net.md 2020-02-09 15:37:01 -10:00
os.md doc: standardize on "host name" in os.md 2020-01-14 10:17:30 -08:00
path.md doc: add explanatory to path.resolve description 2020-01-22 19:21:57 -08:00
perf_hooks.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
policy.md doc: remove dashes 2019-10-26 08:39:41 -07:00
process.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: updated YAML version representation in readline.md 2020-02-25 13:53:22 -08:00
repl.md doc: reword possessive form of Node.js in repl.md 2020-02-12 00:20:37 -08:00
report.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
stream.md doc: update stream.pipeline() signature 2020-02-22 08:18:43 +01:00
string_decoder.md doc,string_decoder: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
synopsis.md
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md tls: expose SSL_export_keying_material 2020-02-23 01:21:04 -04:00
tracing.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tty.md doc,tty: use code markup/markdown in headers 2019-12-26 21:39:33 -08:00
url.md doc: standardize on "host name" in url.md 2020-01-14 10:17:33 -08:00
util.md doc,util: revise util.md introductory paragraph 2020-02-09 15:39:33 -10:00
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md vm: implement vm.measureMemory() for per-context memory measurement 2020-02-26 17:52:39 +08:00
wasi.md doc,wasi: use code markup/markdown in headers 2019-12-26 21:39:35 -08:00
worker_threads.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
zlib.md doc: update zlib doc 2020-02-26 16:56:16 -08:00