code: @SafeVarargs
      public static <T> PromisesArray<T> of(T... items) {
          ArrayList<Promise<T>> res = new ArrayList<>();
          for (T t : items) {
              res.add(Promise.success(t));
          }
          final Promise[] promises = res.toArray(new Promise[res.size()]);
          return new PromisesArray<>((PromiseFunc<Promise<T>[]>) executor -> {
              executor.result(promises);
          });
      }
docs: Create PromisesArray from values
  
  @param items elements
  @param <T>   type of array
  @return array