lib/elevate/http/request.rb
# Cancels an in-flight request.
#
# This method is safe to call from any thread.
#
# @return [void]
#
# @api public
Cancels an in-flight request.
This method is safe to call from any thread.
Cancels an in - flight request . This method is safe to call from any thread .
def cancel
      return unless sent?
      NetworkThread.cancel(@connection) if @connection
      ActivityIndicator.instance.hide
      @future.fulfill(nil)
    end
def cancel return unless sent? NetworkThread . cancel ( @connection ) if @connection ActivityIndicator . instance . hide @future . fulfill ( nil ) end
Cancels an in-flight request.
Cancels an in - flight request .
None
void
api
None