I came across this recently, and it is worth noting that:
type ForkJoinPool in package forkjoin is deprecated (since 2.12.0): use java.util.concurrent.ForkJoinPool directly, instead of this alias
The remedy for me was to replace import
import scala.concurrent.forkjoin.ForkJoinPool
with
import java.util.concurrent.ForkJoinPool
Then everything is compiled on the advice of VasyaNoviKov.
source share