Skip to content

Approaches to get a destructor when main finishes. #62

Closed
@dpc

Description

@dpc

Hi, I have a problem that I wish I could rely somehow on destruction of lazy_static to call drop on what's inside it. I know it might be impossible, but I guess it's worth asking. Suggestions for workaround etc. are welcome. I was eg. thinking about using a Weak inside lazy_static, but then I do have to have a strong reference somewhere in the main thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions