Skip to content

Commit

Permalink
Future.reduce considers executor (#2430)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietrich committed Jul 22, 2019
1 parent 54a3d31 commit 65e42e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vavr/src/main/java/io/vavr/concurrent/Future.java
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ static <T> Future<T> reduce(Executor executor, Iterable<? extends Future<? exten
if (!futures.iterator().hasNext()) {
throw new NoSuchElementException("Future.reduce on empty futures");
} else {
return Future.<T> sequence(futures).map(seq -> seq.reduceLeft(f));
return Future.sequence(executor, futures).map(seq -> seq.reduceLeft(f));
}
}

Expand Down

0 comments on commit 65e42e3

Please sign in to comment.