Hi
I have a List of Promise List<Promise> promises, is there anyway i can convert it to List results after all promise fulfilled. Promise.allOf(promises) returns Void.
Hi
I have a List of Promise List<Promise> promises, is there anyway i can convert it to List results after all promise fulfilled. Promise.allOf(promises) returns Void.
List<String> result = new ArrayList<>(promises.size());
for (Promise<String> p: promises) {
result.add(p.get());
}