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