module Enumerable
Public Instance Methods
pmap(&block)
click to toggle source
Simple parallel map using Celluloid::Futures
# File lib/eye/utils/pmap.rb, line 3 def pmap(&block) futures = map { |elem| Celluloid::Future.new(elem, &block) } futures.map { |future| future.value } end