instance method
take
Ruby on Rails edge
Since edgeSignature
take(worker_id:)
No documentation comment.
Parameters
-
worker_idkeyreq
Source
# File activesupport/lib/active_support/testing/parallelization/test_distributor.rb, line 99
def take(worker_id:)
job = nil
until job || exhausted?(worker_id)
job = next_job(worker_id)
wait(worker_id) unless job || exhausted?(worker_id)
end
job
end
Defined in activesupport/lib/active_support/testing/parallelization/test_distributor.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Testing::Parallelization::RoundRobinDistributor