This module handles the request queueing on hydra.
@api private
Abort the current hydra run as good as possible. This means that it only clears the queued requests and can't do anything about already running requests.
@example Abort hydra.
hydra.abort
# File lib/typhoeus/hydra/queueable.rb, line 27 def abort queued_requests.clear end
Enqueues a request in order to be performed by the hydra. This can even be done while the hydra is running. Also sets hydra on request.
@example Queue request.
hydra.queue(request)
# File lib/typhoeus/hydra/queueable.rb, line 38 def queue(request) request.hydra = self queued_requests << request end
Generated with the Darkfish Rdoc Generator 2.