class Typhoeus::EasyFactory
def set_callback
-
(Ethon::Easy)
- The easy.
Other tags:
- Example: Set callback. -
def set_callback easy.on_complete do |easy| request.finish(Response.new(easy.to_hash)) Typhoeus::Pool.release(easy) if hydra && !hydra.queued_requests.empty? hydra.add(hydra.queued_requests.shift) end end end