Trait/Object

cats

Parallel

Related Docs: object Parallel | package cats

Permalink

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.

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]

    Permalink

    The applicative instance for F[_]

  2. abstract def monad: Monad[M]

    Permalink

    The monad instance for M[_]

  3. abstract def parallel: ~>[M, F]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applicativeError[E](implicit E: MonadError[M, E]): ApplicativeError[F, E]

    Permalink

    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]

    Permalink

    The Apply instance for F[_]

    The Apply instance for F[_]

    Definition Classes
    ParallelNonEmptyParallel
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap: FlatMap[M]

    Permalink

    The FlatMap instance for M[_]

    The FlatMap instance for M[_]

    Definition Classes
    ParallelNonEmptyParallel
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def parProductL[A, B](ma: M[A])(mb: M[B]): M[A]

    Permalink

    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]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def parFollowedBy[A, B](ma: M[A])(mb: M[B]): M[B]

    Permalink
    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]

    Permalink
    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