lib/typhoeus/hydra/runnable.rb in typhoeus-0.5.1 vs lib/typhoeus/hydra/runnable.rb in typhoeus-0.5.2
- old
+ new
@@ -1,19 +1,20 @@
module Typhoeus
class Hydra
# This module contains logic to run a hydra.
- #
- # @api private
module Runnable
# Start the hydra run.
#
# @example Start hydra run.
# hydra.run
#
# @return [ Symbol ] Return value from multi.perform.
def run
+ queued_requests.pop(max_concurrency).map do |request|
+ add(request)
+ end
multi.perform
end
end
end
end