Skip to content

Commit 0535216

Browse files
committed
Less strict reduction signature.
1 parent a3cd8e6 commit 0535216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rascal-lsp/src/main/java/org/rascalmpl/vscode/lsp/util/concurrent/CompletableFutureUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static <T> CompletableFuture<List<T>> reduce(Stream<CompletableFuture<T>>
113113
* @param concat A function that merges two values of {@link I}.
114114
* @return A future that yields a list of all the elements in the lists from the reduced futures.
115115
*/
116-
public static <I extends Iterable<?>> CompletableFuture<I> flatten(Stream<CompletableFuture<I>> futures, CompletableFuture<I> identity, BinaryOperator<I> concat) {
116+
public static <I> CompletableFuture<I> flatten(Stream<CompletableFuture<I>> futures, CompletableFuture<I> identity, BinaryOperator<I> concat) {
117117
return reduce(futures,
118118
identity,
119119
Function.identity(),

0 commit comments

Comments
 (0)