vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/hydra/queueable.rb
# Removes requests from queued_requests and
# adds them to the hydra until max_concurrency
# is reached.
#
# @example Dequeue requests.
#   hydra.dequeue_many
#
# @since 0.6.8
Removes requests from queued_requests and
adds them to the hydra until max_concurrency
is reached.
Removes requests from queued_requests and adds them to the hydra until max_concurrency is reached .
def dequeue_many
        number = multi.easy_handles.count
        until number == max_concurrency || queued_requests.empty?
          add(queued_requests.shift)
          number += 1
        end
      end
def dequeue_many number = multi . easy_handles . count until number == max_concurrency || queued_requests . empty? add ( queued_requests . shift ) number += 1 end end
Removes requests from queued_requests and
adds them to the hydra until max_concurrency
is reached.
Removes requests from queued_requests and adds them to the hydra until max_concurrency is reached .
example
Dequeue requests. hydra.dequeue_many
Dequeue requests . hydra . dequeue_many
since
None