mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
并行流适配
This commit is contained in:
parent
699217b4c3
commit
4c8ed54241
@ -1384,7 +1384,7 @@ public class EasyStream<T> implements Stream<T>, Iterable<T> {
|
||||
Map<R, List<T>> pIdValuesMap,
|
||||
List<T> parents) {
|
||||
MutableObj<Consumer<List<T>>> recursiveRef = new MutableObj<>();
|
||||
Consumer<List<T>> recursive = values -> EasyStream.of(values).forEach(value -> {
|
||||
Consumer<List<T>> recursive = values -> EasyStream.of(values, isParallel()).forEach(value -> {
|
||||
List<T> children = pIdValuesMap.get(idGetter.apply(value));
|
||||
childrenSetter.accept(value, children);
|
||||
recursiveRef.get().accept(children);
|
||||
|
Loading…
x
Reference in New Issue
Block a user