tofu.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-core-ce3_2.12 Show documentation
Show all versions of tofu-core-ce3_2.12 Show documentation
Opinionated set of tools for functional programming in Scala
The newest version!
import cats.effect.Fiber
import cats.data.Ior
import tofu.kernel.KernelTypes
import cats.effect.kernel.Outcome
package object tofu extends KernelTypes {
type IorC[C[_], E, A] = Ior[C[E], C[A]]
type GenStart[F[_], E] = Fibers[F, Outcome[F, E, _], Fiber[F, E, _]]
type Start[F[_]] = GenStart[F, Throwable]
type Timeout[F[_]] = tofu.time.Timeout[F]
val Timeout: tofu.time.Timeout.type = tofu.time.Timeout
}