File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
core/src/main/scala/scala/collection/parallel Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -395,10 +395,12 @@ trait ExecutionContextTasks extends Tasks {
395395 * Otherwise, the driver will be a Scala `Future`-based implementation.
396396 */
397397 private val driver : Tasks = executionContext match {
398- case eci : scala.concurrent.impl.ExecutionContextImpl => eci.executor match {
399- case fjp : ForkJoinPool => new ForkJoinTaskSupport (fjp)
400- case _ => new FutureTasks (environment)
401- }
398+ case fjp : ForkJoinPool => new ForkJoinTaskSupport (fjp)
399+ case eci : scala.concurrent.impl.ExecutionContextImpl =>
400+ eci.executor match {
401+ case fjp : ForkJoinPool => new ForkJoinTaskSupport (fjp)
402+ case _ => new FutureTasks (environment)
403+ }
402404 case _ => new FutureTasks (environment)
403405 }
404406
You can’t perform that action at this time.
0 commit comments