Class: Rubydoop::Context::Jobs::Parallel

Inherits:
Rubydoop::Context::Jobs show all
Defined in:
lib/rubydoop/dsl.rb

Instance Attribute Summary

Attributes inherited from Rubydoop::Context::Jobs

#jobs

Instance Method Summary collapse

Methods inherited from Rubydoop::Context::Jobs

#add, #initialize

Constructor Details

This class inherits a constructor from Rubydoop::Context::Jobs

Instance Method Details

#wait_for_completion(verbose) ⇒ Object



437
438
439
440
441
442
443
# File 'lib/rubydoop/dsl.rb', line 437

def wait_for_completion(verbose)
  @jobs.map do |job|
    Thread.new do
      job.wait_for_completion(verbose)
    end
  end.map!(&:value).all?
end