tofu.BoundedParallel.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-kernel_3 Show documentation
Show all versions of tofu-kernel_3 Show documentation
Opinionated set of tools for functional programming in Scala
package tofu
import cats.Traverse
import tofu.internal.EffectComp
import tofu.internal.instances.BoundedParallelInstance
trait BoundedParallel[F[_]] {
def parTraverse[T[_]: Traverse, A, B](in: T[A])(f: A => F[B]): F[T[B]]
def parTraverseN[T[_]: Traverse, A, B](in: T[A], n: Int)(f: A => F[B]): F[T[B]]
}
object BoundedParallel extends BoundedParallelInstance with EffectComp[BoundedParallel]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy