instance method
worker_loop
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
worker_loop(worker_id)
No documentation comment.
Parameters
-
worker_idreq
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