Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
org.scala-lang.modules:scala-parallel-collections_2.13
Advanced tools
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 (in Scala 2.10 through 2.12).
For Scala 3 and Scala 2.13, this module is a separate JAR that can be omitted from projects that do not use parallel collections.
This module is community-maintained, under the guidance of the Scala team at Lightbend. If you are interested in participating, please jump right in on issues and pull requests.
To depend on scala-parallel-collections in sbt, add this to your build.sbt
:
libraryDependencies +=
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.3"
In your code, adding this import:
import scala.collection.parallel.CollectionConverters._
will enable use of the .par
method as in earlier Scala versions.
This module is published only for the Scala 3 and 2.13, so in a cross-built project, the dependency should take this form:
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major <= 12 =>
Seq()
case _ =>
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.3")
}
}
This way of testing scalaVersion
is robust across varying Scala
version number formats (nightlies, milestones, release candidates,
community build, etc).
Using .par
is problematic in a cross-built project, since in Scala
2.13+ the CollectionConverters._
import shown above is necessary, but
in earlier Scala versions, that import will not compile.
You may able to avoid the problem by directly constructing your
parallel collections rather than going through .par
. For other
possible workarounds, see
https://github.com/scala/scala-parallel-collections/issues/22,
which is still under discussion.
As with other Scala standard modules, build and release infrastructure is provided by the sbt-scala-module sbt plugin.
FAQs
scala-parallel-collections
We found that org.scala-lang.modules:scala-parallel-collections_2.13 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.