class Typhoeus::Hydra
the requests by yourself.
The benefits are that you don’t have to worry running
is achieved by using libcurls multi interface:
Hydra manages making parallel HTTP requests. This
def initialize(options = {})
(**options)
-
:max_concurrency
(Integer
) -- Number
Parameters:
-
options
(Hash
) -- The options hash.
Other tags:
- Example: Create a hydra. -
def initialize(options = {}) @options = options @max_concurrency = @options.fetch(:max_concurrency, 200) @multi = Ethon::Multi.new end