Sha256: 3538b7b4bcd6abbee1a021a83fef72ff194a963098737550c4013b8859c5ae40

Contents?: true

Size: 164 Bytes

Versions: 3

Compression:

Stored size: 164 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

3 entries across 3 versions & 1 rubygems

Version Path
eye-0.8.pre2 lib/eye/utils/pmap.rb
eye-0.8.pre lib/eye/utils/pmap.rb
eye-0.7 lib/eye/utils/pmap.rb