Class ParallelEach
In: lib/minitest/parallel_each.rb
Parent: Object

Provides a parallel each that lets you enumerate using N threads. Use environment variable N to customize. Defaults to 2. Enumerable, so all the goodies come along (tho not all are wrapped yet to return another ParallelEach instance).

Methods

each   new  

Included Modules

Enumerable

Constants

N = (ENV['N'] || 2).to_i   How many Threads to use for this parallel each.

External Aliases

select -> find_all

Public Class methods

Create a new ParallelEach instance over list.

Public Instance methods

Starts N threads that yield each element to your block. Joins the threads at the end.

[Validate]