Skip to content

Commit de030cd

Browse files
committed
Updating the logic which locates EC FJP to 2.13
1 parent 03abdfb commit de030cd

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,12 @@ trait ExecutionContextTasks extends Tasks {
391391
* Otherwise, the driver will be a Scala `Future`-based implementation.
392392
*/
393393
private val driver: Tasks = executionContext match {
394-
case eci: scala.concurrent.impl.ExecutionContextImpl => eci.executor match {
395-
case fjp: ForkJoinPool => new ForkJoinTaskSupport(fjp)
396-
case _ => new FutureTasks(environment)
397-
}
394+
case fjp: ForkJoinPool => new ForkJoinTaskSupport(fjp)
395+
case eci: scala.concurrent.impl.ExecutionContextImpl =>
396+
eci.executor match {
397+
case fjp: ForkJoinPool => new ForkJoinTaskSupport(fjp)
398+
case _ => new FutureTasks(environment)
399+
}
398400
case _ => new FutureTasks(environment)
399401
}
400402

0 commit comments

Comments
 (0)