Permalink
Browse files

clean use example and update README

  • Loading branch information...
1 parent f9af228 commit 5693474e76cfac059ff80b8158cb692507c1ad6f @cocoa committed Feb 18, 2013
Showing with 1 addition and 18 deletions.
  1. +1 −1 README.md
  2. +0 −17 lib/threadpool.rb
View
@@ -6,7 +6,7 @@ Based on Ruby cooking, this gem allows to run a limited pool of threads simultan
Add this line to your application's Gemfile:
- gem 'threadpool'
+ gem 'threadpool','0.0.2'
And then execute:
View
@@ -50,20 +50,3 @@ def self.version_string
end
-
-
-
-=begin
-$DEBUG = true
-pool = ThreadPool.new(3)
-
-1.upto(5) do |i|
- pool.dispatch(i) do |i|
- print "Job #{i} started.\n"
- sleep(5-i)
- print "Job #{i} complete.\n"
- end
-end
-
-pool.shutdown
-=end

0 comments on commit 5693474

Please sign in to comment.