method

synchronize

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

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

synchronize(&block)
public

No documentation available.

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

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