subprojects/parseq/src/main/java/com/linkedin/parseq/promise/Promises.java
@SuppressWarnings("unchecked")
  public static <T> Promise<T> value(final T value) {
    if (value == null) {
      if (VOID == null) {
        return new ResolvedValue<T>(value);
      } else {
        return (Promise<T>) VOID;
      }
    }
    return new ResolvedValue<T>(value);
  }
@SuppressWarnings("unchecked")
  public static <T> Promise<T> value(final T value) {
    if (value == null) {
      if (VOID == null) {
        return new ResolvedValue<T>(value);
      } else {
        return (Promise<T>) VOID;
      }
    }
    return new ResolvedValue<T>(value);
  }
Creates a new promise that is already resolved with the given value.

@param value the value for the new promise
@param <T> the type of the value for the promise
@return the promise