Skip to content

Consider adding an accessor to query the initialization state of a lazy static #60

Open
@Kimundi

Description

@Kimundi

Similar to lazy_static::initialize() there could be a lazy_static::is_initialized().

This could be used to give code that might run into a initialization cycle issue an way to avoid it.

However, it seems that std::sync::Once does not support this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions