class ActiveSupport::Concurrency::LoadInterlockAwareMonitor

def synchronize(&block)

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

def synchronize: () -> (ActiveRecord::Result | PG::Result)

This signature was generated using 9 samples from 1 application.

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