123456789_123456789_123456789_123456789_123456789_

Class: Integer

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/minitest/test_task.rb

Instance Method Summary

Instance Method Details

#threads_do(jobs)

[ GitHub ]

  
# File 'lib/minitest/test_task.rb', line 296

def threads_do jobs # :nodoc:
  q = Work.new jobs

  Array.new(self) {
    Thread.new do
      while job = q.pop # go until quit value
        yield job
      end
    end
  }.each(&:join)
end