# File lib/typhoeus.rb, line 45 def self.add_easy_request(easy_object) Thread.current[:curl_multi] ||= Typhoeus::Multi.new Thread.current[:curl_multi].add(easy_object) end
# File lib/typhoeus.rb, line 22 def self.easy_object_pool @easy_objects ||= [] end
# File lib/typhoeus.rb, line 37 def self.get_easy_object if easy_object_pool.empty? Typhoeus::Easy.new else easy_object_pool.pop end end
# File lib/typhoeus/remote.rb, line 4 def self.included(base) base.extend ClassMethods end
# File lib/typhoeus.rb, line 26 def self.init_easy_object_pool 20.times do easy_object_pool << Typhoeus::Easy.new end end
Generated with the Darkfish Rdoc Generator 2.