code: function retry(fn, { attempts = 5, min = 5000, max = 30000 } = {}) {
      const backoff = new Backoff({ min, max });
      return retryPromise(fn, attempts, backoff);
  }
docs: Retry promise
  
  @param {function} fn Function returning promise that should be retried
  @param {object} [backoffOpts] Backoff options
  @param {number} [backoffOpts.attempts] Maximum number of attempts, default: `5`
  @param {number} [backoffOpts.min] Minimum attempt delay in milliseconds, default: `5000`
  @param {number} [backoffOpts.max] Maximum attempt delay in milliseconds, default: `30000`
  @returns {Promise}