Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Making handling threaded workers in Ruby a breeze

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 floormanager.gemspec
README.rdoc

floormanager: Handle threaded workers like a champ

Usage

require 'floormanager'

queue   = FloorManager::Queue.new('one', 'two', 'three', 'four', 'five')
workers = FloorManager::Workers.new(queue)

workers.perform(:threads => 3) do |item|
  item.upcase
end

queue.each do |key, results|
  puts "Key: #{key}, results: #{results}"
end

See the examples for more advanced usage.

TODO

  • Write the tests

Copyright

Copyright © 2010 Inge Jørgensen. See LICENSE for details.

Something went wrong with that request. Please try again.