Method: ActiveSupport::Dependencies.load_interlock

Defined in:
activesupport/lib/active_support/dependencies.rb

.load_interlock(&block) ⇒ Object

Execute the supplied block while holding an exclusive lock, preventing any other thread from being inside a #run_interlock block at the same time.



24
25
26
# File 'activesupport/lib/active_support/dependencies.rb', line 24

def self.load_interlock(&block)
  interlock.loading(&block)
end