class ActiveSupport::Concurrency::LoadInterlockAwareMonitor

def synchronize(&block)

Experimental RBS support (using type sampling data from the type_fusion project).

type ActiveSupport__Concurrency__LoadInterlockAwareMonitor_synchronize_return_value = nil | PG::Result | ActiveRecord::ConnectionAdapters::RealTransaction | ActiveRecord::Result | ActiveRecord::ConnectionAdapters::SavepointTransaction | Thread::ConditionVariable | false

def synchronize: () -> ActiveSupport__Concurrency__LoadInterlockAwareMonitor_synchronize_return_value

This signature was generated using 146 samples from 2 applications.

def synchronize(&block)
  Thread.handle_interrupt(EXCEPTION_NEVER) do
    mon_enter
    begin
      Thread.handle_interrupt(EXCEPTION_IMMEDIATE, &block)
    ensure
      mon_exit
    end
  end
end