Parallel

cats.Parallel
See theParallel companion object
trait Parallel[M[_]] extends NonEmptyParallel[M]

Some types that form a Monad, are also capable of forming an Applicative that supports parallel composition. The Parallel type class allows us to represent this relationship.

Attributes

Companion
object
Source
Parallel.scala
Graph
Supertypes
trait NonEmptyParallel[M]
trait Serializable
class Object
trait Matchable
class Any

Members list

Type members

Inherited and Abstract types

type F[_]

Attributes

Inherited from:
NonEmptyParallel
Source
Parallel.scala

Value members

Abstract methods

The applicative instance for F[_]

The applicative instance for F[_]

Attributes

Source
Parallel.scala
def monad: Monad[M]

The monad instance for M[_]

The monad instance for M[_]

Attributes

Source
Parallel.scala

Concrete methods

def applicativeError[E](implicit E: MonadError[M, E]): ApplicativeError[F, E]

Provides an ApplicativeError[F, E] instance for any F, that has a Parallel.Aux[M, F] and a MonadError[M, E] instance.

Provides an ApplicativeError[F, E] instance for any F, that has a Parallel.Aux[M, F] and a MonadError[M, E] instance. I.e. if you have a type M[_], that supports parallel composition through type F[_], then you can get ApplicativeError[F, E] from MonadError[M, E].

Attributes

Source
Parallel.scala
override def apply: Apply[F]

The Apply instance for F[_]

The Apply instance for F[_]

Attributes

Definition Classes
Source
Parallel.scala
override def flatMap: FlatMap[M]

The FlatMap instance for M[_]

The FlatMap instance for M[_]

Attributes

Definition Classes
Source
Parallel.scala

Inherited methods

def parProductL[A, B](ma: M[A])(mb: M[B]): M[A]

Like Apply.productL, but uses the apply instance corresponding to the Parallel instance instead.

Like Apply.productL, but uses the apply instance corresponding to the Parallel instance instead.

Attributes

Inherited from:
NonEmptyParallel
Source
Parallel.scala
def parProductR[A, B](ma: M[A])(mb: M[B]): M[B]

Like Apply.productR, but uses the apply instance corresponding to the Parallel instance instead.

Like Apply.productR, but uses the apply instance corresponding to the Parallel instance instead.

Attributes

Inherited from:
NonEmptyParallel
Source
Parallel.scala

Inherited and Abstract methods

def parallel: FunctionK[M, F]

Natural Transformation from the sequential FlatMap M[_] to the parallel Apply F[_].

Natural Transformation from the sequential FlatMap M[_] to the parallel Apply F[_].

Attributes

Inherited from:
NonEmptyParallel
Source
Parallel.scala

Natural Transformation from the parallel Apply F[_] to the sequential FlatMap M[_].

Natural Transformation from the parallel Apply F[_] to the sequential FlatMap M[_].

Attributes

Inherited from:
NonEmptyParallel
Source
Parallel.scala