185186187188189190191192193194195
for (Future<T> result : executorService.invokeAll(tasks)) finalists.add(result.get()); if (finalists.size() == 0) { throw new DataProcessingException("No scoring jobs ended"); } return Collections.min(finalists, Scoreable.COMPARATOR); } }