appendPromise(id) {
    const p = new Promise((resolve, reject) => {
      const obj = {
        id,
        resolve,
        reject
      };
      this._promises.push(obj);
    });
    return p;
  }
/**
   * Appends new Promise object to the list of promises.
   *
   * @param {Number} id ID of the IPC call
   * @return {Promise} Generated Promise object.
   */
Appends new Promise object to the list of promises.
@param {Number} id ID of the IPC call
@return {Promise} Generated Promise object.
Appends new Promise object to the list of promises . @param { Number } id ID of the IPC call @return { Promise } Generated Promise object .
appendPromise(id) {
    const p = new Promise((resolve, reject) => {
      const obj = {
        id,
        resolve,
        reject
      };
      this._promises.push(obj);
    });
    return p;
  }
appendPromise ( id ) { const p = new Promise ( ( resolve , reject ) => { const obj = { id , resolve , reject } ; this . _promises . push ( obj ) ; } ) ; return p ; }
Appends new Promise object to the list of promises.
Appends new Promise object to the list of promises .