All Downloads are FREE. Search and download functionalities are using the official Maven repository.

orcus.async.Par.scala Maven / Gradle / Ivy

There is a newer version: 0.28.9
Show newest version
package orcus.async

import cats.~>

trait Par[F[_]] {
  type G[_]

  def parallel: F ~> G
}

object Par {
  type Aux[F[_], G0[_]] = Par[F] { type G[α] = G0[α] }

  @inline def apply[F[_], G[_]](implicit F: Aux[F, G]): Aux[F, G] = F
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy