Skip to content

There is no guarantee that finalizers will run before a program exits #258

@gen2brain

Description

@gen2brain

This is from the SetFinalizer documentation:

There is no guarantee that finalizers will run before a program exits, so typically they are useful only for releasing non-memory resources associated with an object during a long-running program.

Here is how the author of Windigo solved this https://www.reddit.com/r/golang/comments/1lw1yei/comment/n2ccrt8/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions