instance method interrupt

Ruby on Rails edge

Since edge

Signature

interrupt()

No documentation comment.

Source
# File activesupport/lib/active_support/testing/parallelization/test_distributor.rb, line 110
        def interrupt
          @mutex.synchronize do
            @queues&.each do |q|
              q.clear
              q.close
            end
            @closed = true
            @cv.broadcast  # Wake all waiting workers
          end
        end

Defined in activesupport/lib/active_support/testing/parallelization/test_distributor.rb line 110 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Parallelization::RoundRobinDistributor

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close