code: function finishBasicPromise (resolve, reject) {
    return (err, res) => {
      if (err) {
        return reject(err);
      } else {
        return resolve(res);
      }
    };
  }
docs: Shorthand for adapting callbacks to `Promise`s.
  
  @param {Function} resolve - A resolve function.
  @param {Function} reject - A reject function.
  @private