@Override
  public void close() {
    if (valueSoFar != null) {
      consumer.accept(valueSoFar);
    }
  }
A new configured consumer.

@param consumer {@link Consumer} callback to wrap
@param delayBetweenCallbacks delay between each call to the underlying accept
@param getNow supplies of the current time {@link Instant}
jib-core/src/main/java/com/google/cloud/tools/jib/event/progress/ThrottledAccumulatingConsumer.java