Skip to content

Commit 632a2f9

Browse files
authored
Merge pull request #44 from scala/wip-default-to-commonPool-√
Make the ForkJoinTasks.defaultForkJoinPool delegate to ForkJoin.commonPool()
2 parents 6e3bfc7 + dd9bc39 commit 632a2f9

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/scala/scala/collection/parallel

1 file changed

+1
-1
lines changed

core/src/main/scala/scala/collection/parallel/Tasks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ trait ForkJoinTasks extends Tasks with HavingForkJoinPool {
293293
}
294294

295295
object ForkJoinTasks {
296-
lazy val defaultForkJoinPool: ForkJoinPool = new ForkJoinPool()
296+
lazy val defaultForkJoinPool: ForkJoinPool = ForkJoinPool.commonPool()
297297
}
298298

299299
/* Some boilerplate due to no deep mixin composition. Not sure if it can be done differently without them.

0 commit comments

Comments
 (0)