Skip to content
Making handling threaded workers in Ruby a breeze
Ruby
Branch: master
Clone or download
This branch is 1 commit behind anyone-oslo:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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 © 2010 Inge Jørgensen. See LICENSE for details.

You can’t perform that action at this time.