GitXplorerGitXplorer
b

parallel2

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a7cf187f6944114588923eed93e7eb49a7cbf907

include tests

bbry4n committed 13 years ago
Unverified
e476c772ca7d5cc5a2bcb1bdc74bc0721dd24f2b

update

bbry4n committed 13 years ago
Unverified
325f6308c2b6181a7ec0b47258604e6b4dc63540

example

bbry4n committed 13 years ago
Unverified
034434bc98a9b9cf31545228e2cb315621d1fcc7

add map block with examples

bbry4n committed 13 years ago
Unverified
ed0488d2956190624cc15f6bb43a24f1f63aff2a

initial commit

bbry4n committed 13 years ago

README

The README file for this repository.

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