We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e969992 commit 66f22bfCopy full SHA for 66f22bf
1 file changed
src/main/java/graphql/execution/Async.java
@@ -46,6 +46,7 @@ public static <T, U> CompletableFuture<List<U>> each(Iterable<T> list, BiFunctio
46
Assert.assertNotNull(cf, "cfFactory must return a non null value");
47
} catch (Exception e) {
48
cf = new CompletableFuture<>();
49
+ // Async.each makes sure that it is not a CompletionException inside a CompletionException
50
cf.completeExceptionally(new CompletionException(e));
51
}
52
futures.add(cf);
0 commit comments