instance method worker_loop

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

worker_loop(worker_id)

No documentation comment.

Parameters

worker_id req
Source
# File activesupport/lib/active_support/testing/parallelization/thread_pool_executor.rb, line 37
          def worker_loop(worker_id)
            while job = @distributor.take(worker_id: worker_id)
              klass, method, reporter = job

              reporter.synchronize { reporter.prerecord klass, method }
              result = if Minitest.respond_to? :run_one_method then
                Minitest.run_one_method klass, method
              else
                klass.new(method).run
              end
              reporter.synchronize { reporter.record result }
            end
          end

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

Defined in ActiveSupport::Testing::Parallelization::ThreadPoolExecutor

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