@SafeVarargs public static <T>PromisesArray<T> ofPromises(Promise<T>... items){
  ArrayList<Promise<T>> res=new ArrayList<>();
  Collections.addAll(res,items);
  final Promise[] promises=res.toArray(new Promise[res.size()]);
  return new PromisesArray<>((PromiseFunc<Promise<T>[]>)null);
}

@ SafeVarargs public static < T > PromisesArray < T > ofPromises ( Promise < T > ... items ) { ArrayList < Promise < T > > res = new ArrayList < > ( ) ; Collections . addAll ( res , items ) ; final Promise [ ] promises = res . toArray ( new Promise [ res . size ( ) ] ) ; return new PromisesArray < > ( ( PromiseFunc < Promise < T > [ ] > ) null ) ; }
create promisesarray from multiple promise
