Module Typhoeus::Pool
In: lib/typhoeus/pool.rb

The easy pool stores already initialized easy handles for future use. This is useful because creating them is expensive.

@api private

Methods

clear   get   release   with_easy  

Public Class methods

Clear the pool

Return an easy from the pool.

@example Return easy.

  Typhoeus::Pool.get

@return [ Ethon::Easy ] The easy.

Releases easy into the pool. The easy handle is reset before it gets back in.

@example Release easy.

  Typhoeus::Pool.release(easy)

Use yielded easy, will be released automatically afterwards.

@example Use easy.

  Typhoeus::Pool.with_easy do |easy|
    # use easy
  end

[Validate]