Method: Enumerable#pmap
- Defined in:
- lib/eye/utils/pmap.rb
#pmap(&block) ⇒ Object
Simple parallel map using Celluloid::Futures
4 5 6 |
# File 'lib/eye/utils/pmap.rb', line 4 def pmap(&block) map { |elem| Celluloid::Future.new(elem, &block) }.map(&:value) end |