CatsParallelForTask

cats.Parallel type class instance for Task.

A cats.Parallel instances means that Task can be used for processing tasks in parallel (with non-deterministic effects ordering).

References:

Companion:
object
trait Parallel[Task]
trait Serializable
class Object
trait Matchable
class Any

Type members

Types

override type F[A] = Type[A]

Value members

Concrete methods

override def applicative: Applicative[Par]
Definition Classes
override def monad: Monad[Task]
Definition Classes

Inherited methods

def applicativeError[E](implicit E: MonadError[Task, 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. 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].

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

Inherited from:
Parallel
override def apply: Apply[F]
Definition Classes
Inherited from:
Parallel
override def flatMap: FlatMap[Task]
Definition Classes
Inherited from:
Parallel
def parProductL[A, B](ma: Task[A])(mb: Task[B]): Task[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.

Inherited from:
NonEmptyParallel
def parProductR[A, B](ma: Task[A])(mb: Task[B]): Task[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.

Inherited from:
NonEmptyParallel

Concrete fields

override val parallel: FunctionK[Task, Par]
override val sequential: FunctionK[Par, Task]