Skip to content

Instantly share code, notes, and snippets.

@jwo
Created February 19, 2015 19:37
Show Gist options
  • Save jwo/b8e0398e99fa44b111fd to your computer and use it in GitHub Desktop.
Save jwo/b8e0398e99fa44b111fd to your computer and use it in GitHub Desktop.
Testing out celluloid-pmap
source 'https://rubygems.org'
ruby '2.2.0'
gem 'hitimes'
gem 'celluloid-pmap', github: 'jwo/celluloid-pmap'
require 'bundler'
Bundler.setup
require 'celluloid/autostart'
require 'celluloid/pmap'
Celluloid.task_class = Celluloid::TaskThread
[35, 45, 55,65,75,85].pmap {|speed_limit| puts "I can't drive #{speed_limit}" ; sleep 2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment