0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Gabriel Schulhof 5030e81ce3 n-api: add APIs for per-instance state management
Adds `napi_set_instance_data()` and `napi_get_instance_data()`, which
allow native addons to store their data on and retrieve their data from
`napi_env`. `napi_set_instance_data()` accepts a finalizer which is
called when the `node::Environment()` is destroyed.

This entails rendering the `napi_env` local to each add-on.

Fixes: https://github.com/nodejs/abi-stable-node/issues/378
PR-URL: https://github.com/nodejs/node/pull/28682
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
2019-07-25 16:53:07 -07:00
..
addons.md
assert.md
async_hooks.md
buffer.md
child_process.md
cli.md
cluster.md
console.md
crypto.md
debugger.md
deprecations.md
dgram.md
dns.md
documentation.md
domain.md
errors.md
esm.md
events.md
fs.md
globals.md
http2.md
http.md
https.md
index.md
inspector.md
intl.md
modules.md
n-api.md n-api: add APIs for per-instance state management 2019-07-25 16:53:07 -07:00
net.md
os.md
path.md
perf_hooks.md
policy.md
process.md
punycode.md
querystring.md
readline.md
repl.md
report.md
stream.md
string_decoder.md
synopsis.md
timers.md
tls.md
tracing.md
tty.md
url.md
util.md
v8.md
vm.md
worker_threads.md
zlib.md