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.