Making handling threaded workers in Ruby a breeze
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
VERSION
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.