docs: public RetryPolicy<R> withDelayWhen(DelayFunction<R, ? extends Throwable> delayFunction, R result) {
      withDelay(delayFunction);
      Assert.notNull(result, "result");
      this.delayResult = result;
      return this;
    }