Closed mensfeld closed 2 years ago
specs dont seem to be related to this change
Got it. WIll look at this today.
I have main failing locally too, investigating
Finished in 10.7 seconds (files took 3.15 seconds to load)
3183 examples, 39 failures, 4 pending
main is green, merging
@mensfeld You missed the ||=
that you've fixed in pull requests for other projects.
@granthusbands I did not miss it. I explicitly do not do it here to make the change small. I pointed out in the article that I wanted to keep the scope small because I do not know how given libs operate.
that you've fixed in pull requests for other projects.
Not exactly the same. In most cases, I fixed the internal ||=
, not the external. Nonetheless you are right and feel free to create a PR :) @solnic should be happy
is prone to a race condition, thus the cache won't be fully thread safe if definitions are parsed in multiple threads.
This PR fixes that.
Ref: https://github.com/ruby-concurrency/concurrent-ruby/issues/970