@mcollina What do you think? That module sounds very useful to have on core, the simplicity makes me want to copy the code but I think we could just expose that as a wrapper for FinalizationRegistry.
We have some issues with the registry but it was solved, the crashes were also fixed by legendas, so maybe we can rely again on this feature.
We probably could expose those functions inside process, maybe something like:
process.registerOnExit(obj, fn);
process.registerBeforeOnExit(obj, fn)
@mcollina What do you think? That module sounds very useful to have on core, the simplicity makes me want to copy the code but I think we could just expose that as a wrapper for
FinalizationRegistry.We have some issues with the registry but it was solved, the crashes were also fixed by legendas, so maybe we can rely again on this feature.
We probably could expose those functions inside
process, maybe something like: