Sha256: e875a5dd690d842e9af5bce21afdd5c69b68bae5fcf0d04bf3ecc3623102d417

Contents?: true

Size: 166 Bytes

Versions: 15

Compression:

Stored size: 166 Bytes

Contents

module Enumerable

  # Simple parallel map using Celluloid::Futures
  def pmap(&block)
    map { |elem| Celluloid::Future.new(elem, &block) }.map(&:value)
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
eye-0.10.1.pre lib/eye/utils/pmap.rb
eye-0.10.0 lib/eye/utils/pmap.rb
eye-0.10.0.alpha2 lib/eye/utils/pmap.rb
eye-0.10.0.alpha lib/eye/utils/pmap.rb
eye-0.9.4.nosigar lib/eye/utils/pmap.rb
eye-0.9.4 lib/eye/utils/pmap.rb
eye-0.9.3 lib/eye/utils/pmap.rb
eye-0.9.2.nosigar lib/eye/utils/pmap.rb
eye-0.9.2 lib/eye/utils/pmap.rb
eye-0.9.1 lib/eye/utils/pmap.rb
eye-0.9.pre lib/eye/utils/pmap.rb
eye-0.8.1 lib/eye/utils/pmap.rb
eye-0.8.celluloid15 lib/eye/utils/pmap.rb
eye-0.8 lib/eye/utils/pmap.rb
eye-0.8.rc lib/eye/utils/pmap.rb