The easy pool stores already initialized easy handles for future use. This is useful because creating them is expensive.
@api private
Clear the pool
# File lib/typhoeus/pool.rb, line 34 def self.clear @mutex.synchronize { easies.clear } end
Return an easy from the pool.
@example Return easy.
Typhoeus::Pool.get
@return [ Ethon::Easy ] The easy.
# File lib/typhoeus/pool.rb, line 29 def self.get @mutex.synchronize { easies.pop } || Ethon::Easy.new end
Generated with the Darkfish Rdoc Generator 2.