Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/continuent-tools-core.rb
Instance Method Summary collapse
Instance Method Details
#peach(&block) ⇒ Object
276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/continuent-tools-core.rb', line 276 def peach(&block) threads = [] self.each{ |i| threads << Thread.new(i) { |member| block.call(member) } } threads.each{|t| t.join() } self end |