0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
Anna Henningsen 5c6cf30143
src: add environment cleanup hooks
This adds pairs of methods to the `Environment` class and to public APIs
which can add and remove cleanup handlers.

Unlike `AtExit`, this API targets addon developers rather than
embedders, giving them (and Node’s internals) the ability to register
per-`Environment` cleanup work.

We may want to replace `AtExit` with this API at some point.

Many thanks for Stephen Belanger for reviewing the original version of
this commit in the Ayo.js project.

Refs: https://github.com/ayojs/ayo/pull/82
PR-URL: https://github.com/nodejs/node/pull/19377
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-05-10 14:15:16 +02:00
..
api src: add environment cleanup hooks 2018-05-10 14:15:16 +02:00
api_assets doc: fix paragraph line-height issue 2017-10-15 12:39:49 +02:00
changelogs 2018-05-08, Version 10.1.0 (Current) 2018-05-08 19:42:16 -07:00
guides doc: update Collaborator Guide reference 2018-05-03 13:44:42 -07:00
.eslintrc.yaml doc: enable eslint prefer-template rule 2018-02-22 14:56:17 +00:00
first_timer_badge.png doc: add recommendations for first timers 2017-10-24 10:26:20 -04:00
full-white-stripe.jpg
node.1 doc: fix manpage warning 2018-05-05 13:51:41 +02:00
onboarding-extras.md doc: remove squash guideline from onboarding doc 2018-05-02 19:16:07 -07:00
onboarding.md doc: move who-to-cc to COLABORATOR_GUIDE.md 2018-03-21 20:27:36 -07:00
osx_installer_logo.png
releases.md doc: fix punctuation in doc/releases.md 2018-04-09 23:22:20 +02:00
STYLE_GUIDE.md doc: add tools/doc/README link in doc/STYLE_GUIDE 2018-04-16 19:16:10 +03:00
template.html doc: responsive docs, rewrite font sizes 2017-10-10 21:28:15 +02:00
thin-white-stripe.jpg