module Ethon::Easy::Callbacks

def progress_callback

Returns:
  • (Proc) - The callback.

Other tags:
    Example: Return the callback. -
def progress_callback
  @progress_callback ||= proc { |_, dltotal, dlnow, ultotal, ulnow|
    progress(dltotal, dlnow, ultotal, ulnow)
    0
  }
end