Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Parallel#each and Parallel#map are using Celluloid::Future (Experimental)
Ruby
Branch: master
Failed to load latest commit information.
examples include tests
lib include tests
spec include tests
.gitignore initial commit
Gemfile include tests
LICENSE initial commit
README.md update
Rakefile include tests
parallel2.gemspec include tests

README.md

Parrallel2

Parallel#each and Parallel#map are using Celluloid::Future

require 'parallel2'

list = [1,10,2,9,3,8,4,7,5,6]
Parallel.each(list) do
  sleep i
  puts "#{i} fired!"
end

results = Parallel.map(list) do
  sleep i
  puts "#{i} fired!"
  i * 2
end
Something went wrong with that request. Please try again.