Skip to content

Commit

Permalink
Change scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
EdAddario committed Apr 3, 2024
1 parent 37cf232 commit 0259297
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static Mono<String> getName(int count) {
var finalCounts = Flux.fromIterable(names)
.buffer(Runtime.getRuntime().availableProcessors())
.parallel()
.runOn(Schedulers.newParallel("Aggregator"))
.runOn(Schedulers.boundedElastic())
.flatMap(ReactiveNames::processBatch)
.sequential()
.reduce(new HashMap<>(), ReactiveNames::mergeIntermediateCount)
Expand Down

0 comments on commit 0259297

Please sign in to comment.