Skip to Content Skip to Search
Methods
D
L
P
R
S
U

Instance Public methods

done_running()

# File activesupport/lib/active_support/dependencies/interlock.rb, line 38
def done_running
  @lock.stop_sharing
end

done_unloading()

# File activesupport/lib/active_support/dependencies/interlock.rb, line 30
def done_unloading
  @lock.stop_exclusive(compatible: [:unload])
end

loading(&block)

# File activesupport/lib/active_support/dependencies/interlock.rb, line 13
def loading(&block)
  ActiveSupport.deprecator.warn(
    "ActiveSupport::Dependencies::Interlock#loading is deprecated and " \
    "will be removed in Rails 9.0. The loading interlock is no longer " \
    "used since Rails switched to Zeitwerk for autoloading."
  )
  yield if block
end

permit_concurrent_loads(&block)

# File activesupport/lib/active_support/dependencies/interlock.rb, line 46
def permit_concurrent_loads(&block)
  # Soft deprecated: no deprecation warning for now, but this is a no-op.
  yield if block
end

running(&block)

# File activesupport/lib/active_support/dependencies/interlock.rb, line 42
def running(&block)
  @lock.sharing(&block)
end

start_running()

# File activesupport/lib/active_support/dependencies/interlock.rb, line 34
def start_running
  @lock.start_sharing
end

start_unloading()

# File activesupport/lib/active_support/dependencies/interlock.rb, line 26
def start_unloading
  @lock.start_exclusive(purpose: :unload, compatible: [:unload])
end

unloading(&block)

# File activesupport/lib/active_support/dependencies/interlock.rb, line 22
def unloading(&block)
  @lock.exclusive(purpose: :unload, compatible: [:unload], after_compatible: [:unload], &block)
end