method

synchronize

rails latest stable - Class: ActiveSupport::Concurrency::LoadInterlockAwareMonitor

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

synchronize(&block)
public

No documentation available.

# File activesupport/lib/active_support/concurrency/load_interlock_aware_monitor.rb, line 20
      def synchronize(&block)
        Thread.handle_interrupt(EXCEPTION_NEVER) do
          mon_enter

          begin
            Thread.handle_interrupt(EXCEPTION_IMMEDIATE, &block)
          ensure
            mon_exit
          end
        end
      end