Configuring Parallel Collections - Scala Documentation
docs.scala-lang.org › overviews › parallelThe ExecutionContextTaskSupport uses the default execution context implementation found in scala.concurrent, and it reuses the thread pool used in scala.concurrent (this is either a fork join pool or a thread pool executor, depending on the JVM version). The execution context task support is set to each parallel collection by default, so parallel collections reuse the same fork-join pool as the future API.
Missing import scala.collection.parallel in Scala 2.13
stackoverflow.com › questions › 56542568Parallel collections have been moved in Scala 2.13 to separate module scala/scala-parallel-collection. This Scala standard module contains the package scala.collection.parallel, with all of the parallel collections that used to be part of the Scala standard library. For Scala 2.13, this module is a separate JAR that can be omitted from projects that do not use parallel collections. thus from 2.13 onwards we need the following dependency