Skip to content

on-exit-leak-free, copy or move to core? #10

@H4ad

Description

@H4ad

@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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions