Module: Enumerable
- Defined in:
- lib/picolena/templates/lib/core_exts.rb
Instance Method Summary collapse
Instance Method Details
#each_with_thread(&block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/picolena/templates/lib/core_exts.rb', line 26 def each_with_thread(&block) tds=self.collect{|elem| Thread.new(elem) {|elem| block.call(elem) } } tds.each{|aThread| aThread.join} end |