-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Crystal.once in lazy initializers
Protects against recursion and adds thread (parallelism) and fiber (concurrency) safety to class var initialization.
1 parent
c645eb0
commit 608df71
Showing
1 changed file
with
232 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters