Use the loop:
for(Promise p: listOfPromise) {
try {
p.get();
} catch (Exception e) {
// handle error
}
}
Use the loop:
for(Promise p: listOfPromise) {
try {
p.get();
} catch (Exception e) {
// handle error
}
}