Skip to content

Commit 66f22bf

Browse files
committed
add comment
1 parent e969992 commit 66f22bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/graphql/execution/Async.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static <T, U> CompletableFuture<List<U>> each(Iterable<T> list, BiFunctio
4646
Assert.assertNotNull(cf, "cfFactory must return a non null value");
4747
} catch (Exception e) {
4848
cf = new CompletableFuture<>();
49+
// Async.each makes sure that it is not a CompletionException inside a CompletionException
4950
cf.completeExceptionally(new CompletionException(e));
5051
}
5152
futures.add(cf);

0 commit comments

Comments
 (0)