parameters: (self)
docstring: Cancels all pending requests
docstring_summary: Cancels all pending requests
docstring_tokens: Cancels all pending requests
function: def cancel(self):
          """ Cancels all pending requests """
          self.force_flush = True
          self.last_activity = time.time()
          self.requests = []
function_tokens: def cancel ( self ) : self . force_flush = True self . last_activity = time . time ( ) self . requests = [ ]