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 @@ -391,10 +391,12 @@ trait ExecutionContextTasks extends Tasks {
391
391
* Otherwise, the driver will be a Scala `Future`-based implementation.
392
392
*/
393
393
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
+ }
398
400
case _ => new FutureTasks (environment)
399
401
}
400
402
You can’t perform that action at this time.
0 commit comments