Files
node/src
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
..
2017-11-27 07:21:08 +01:00
2018-05-10 14:15:16 +02:00
2018-05-10 14:15:16 +02:00
2018-05-10 14:15:16 +02:00
2018-04-29 23:42:42 +02:00
2018-04-29 23:42:42 +02:00
2018-05-10 14:15:16 +02:00
2018-05-10 14:15:16 +02:00
2017-09-14 17:38:38 +02:00
2017-09-14 17:38:38 +02:00
2017-12-01 07:45:00 +01:00
2018-04-03 13:57:41 -07:00
2018-05-10 14:15:16 +02:00
…
2018-05-10 14:15:16 +02:00
2018-04-25 12:22:47 -03:00
2018-05-04 00:57:38 +02:00
2018-01-24 15:02:43 -08:00