code: @Deprecated
      public static Delay constant(int delay, TimeUnit timeUnit) {
  
          LettuceAssert.notNull(timeUnit, "TimeUnit must not be null");
  
          return constant(Duration.ofNanos(timeUnit.toNanos(delay)));
      }
docs: Creates a new {@link ConstantDelay}.
  
  @param delay the delay, must be greater or equal to 0
  @param timeUnit the unit of the delay.
  @return a created {@link ConstantDelay}.
  @deprecated since 5.0, use {@link #constant(Duration)}