CatsParallelForTask

class CatsParallelForTask extends Parallel[[A] =>> Task[A]]

cats.Parallel type class instance for Task.

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[[A] =>> Task[A]]
trait NonEmptyParallel[[A] =>> Task[A]]
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
Parallel
override def monad: Monad[[A] =>> Task[A]]
Definition Classes
Parallel

Inherited methods

def applicativeError[E](E: MonadError[[A] =>> Task[A], 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
Parallel -> NonEmptyParallel
Inherited from
Parallel
override def flatMap: FlatMap[[A] =>> Task[A]]
Definition Classes
Parallel -> NonEmptyParallel
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[[A] =>> Task[A], Par]
override val sequential: FunctionK[Par, [A] =>> Task[A]]