trait Parallel[M[_], F[_]] extends NonEmptyParallel[M, F]

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.

Source
Parallel.scala
Linear Supertypes
NonEmptyParallel[M, F], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parallel
  2. NonEmptyParallel
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def applicative: Applicative[F]

    The applicative instance for F[_]

  2. abstract def monad: Monad[M]

    The monad instance for M[_]

  3. abstract def parallel: ~>[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[_].

    Definition Classes
    NonEmptyParallel
  4. abstract def sequential: ~>[F, M]

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

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

    Definition Classes
    NonEmptyParallel

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def applicativeError[E](implicit E: MonadError[M, E]): ApplicativeError[F, E]

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

    Provides an ApplicativeError[F, E] instance for any F, that has a Parallel[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].

  5. def apply: Apply[F]

    The Apply instance for F[_]

    The Apply instance for F[_]

    Definition Classes
    ParallelNonEmptyParallel
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap: FlatMap[M]

    The FlatMap instance for M[_]

    The FlatMap instance for M[_]

    Definition Classes
    ParallelNonEmptyParallel
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. 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.

    Definition Classes
    NonEmptyParallel
  19. 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.

    Definition Classes
    NonEmptyParallel
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Deprecated Value Members

  1. def parFollowedBy[A, B](ma: M[A])(mb: M[B]): M[B]
    Definition Classes
    NonEmptyParallel
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 1.0.0-RC2) Use parProductR instead.

  2. def parForEffect[A, B](ma: M[A])(mb: M[B]): M[A]
    Definition Classes
    NonEmptyParallel
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 1.0.0-RC2) Use parProductL instead.

Inherited from NonEmptyParallel[M, F]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped