cancel() {
    if (this.canceled) {
      return;
    }

    this.canceled = true;
    this.emit('cancel');
  }
/**
   * Cancels a request while waiting for a server response.
   */
Cancels a request while waiting for a server response.
Cancels a request while waiting for a server response .
cancel() {
    if (this.canceled) {
      return;
    }
    this.canceled = true;
    this.emit('cancel');
  }
cancel ( ) { if ( this . canceled ) { return ; } this . canceled = true ; this . emit ( 'cancel' ) ; }
Cancels a request while waiting for a server response.
Cancels a request while waiting for a server response .