# File lib/typhoeus.rb, line 42
42: def self.add_easy_request(easy_object)
43: Thread.current[:curl_multi] ||= Typhoeus::Multi.new
44: Thread.current[:curl_multi].add(easy_object)
45: end
# File lib/typhoeus.rb, line 19
19: def self.easy_object_pool
20: @easy_objects ||= []
21: end
# File lib/typhoeus.rb, line 34
34: def self.get_easy_object
35: if easy_object_pool.empty?
36: Typhoeus::Easy.new
37: else
38: easy_object_pool.pop
39: end
40: end
# File lib/typhoeus/remote.rb, line 4 4: def self.included(base) 5: base.extend ClassMethods 6: end
# File lib/typhoeus.rb, line 23
23: def self.init_easy_object_pool
24: 20.times do
25: easy_object_pool << Typhoeus::Easy.new
26: end
27: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.