Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect against initialization functions panicking #2

Merged
merged 2 commits into from May 13, 2022

Conversation

SabrinaJewson
Copy link
Contributor

Builds on #1 for convenience. The previous code was unsound because it didn't take into account that the intiailization function could panic, leaving the Lazy in a permanently initializing state.

@Aandreba Aandreba merged commit ca9e388 into Aandreba:master May 13, 2022
@SabrinaJewson SabrinaJewson deleted the soundness branch May 14, 2022 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants