This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
each()
public
Starts N threads that yield each
element to your block. Joins the threads at the end.
# File lib/minitest/parallel_each.rb, line 46
def each
threads = N.times.map {
Thread.new do
Thread.current.abort_on_exception = true
while job = @queue.pop
yield job
end
end
}
threads.map(&:join)
end