class method
self.run_interlock
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
self.run_interlock()
Execute the supplied block without interference from any concurrent loads.
Source
# File activesupport/lib/active_support/dependencies.rb, line 31
def self.run_interlock
Dependencies.interlock.running { yield }
end
Defined in activesupport/lib/active_support/dependencies.rb line 31
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Dependencies