Sha256: 2b464768a7328bf8ff268eca3dee0bd1e46e68e05a68bd2c8d5285adaeab71d9

Contents?: true

Size: 203 Bytes

Versions: 24

Compression:

Stored size: 203 Bytes

Contents

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

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
eye-0.7.pre lib/eye/utils/pmap.rb
eye-0.6.4 lib/eye/utils/pmap.rb
eye-0.6.3 lib/eye/utils/pmap.rb
eye-0.6.2 lib/eye/utils/pmap.rb
eye-0.6.2.pre lib/eye/utils/pmap.rb
ace-eye-0.6.5 lib/eye/utils/pmap.rb
ace-eye-0.6.4 lib/eye/utils/pmap.rb
eye-0.6.1 lib/eye/utils/pmap.rb
ace-eye-0.6.3 lib/eye/utils/pmap.rb
ace-eye-0.6.2 lib/eye/utils/pmap.rb
ace-eye-0.6.1 lib/eye/utils/pmap.rb
eye-0.6 lib/eye/utils/pmap.rb
reel-eye-0.5.2.1 lib/eye/utils/pmap.rb
reel-eye-0.5.2 lib/eye/utils/pmap.rb
eye-0.5.2 lib/eye/utils/pmap.rb
reel-eye-0.5.1 lib/eye/utils/pmap.rb
eye-0.5.1 lib/eye/utils/pmap.rb
reel-eye-0.5 lib/eye/utils/pmap.rb
eye-0.5 lib/eye/utils/pmap.rb
eye-0.4.2 lib/eye/utils/pmap.rb