tofu.ScopedInstancesMacro.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 scala.concurrent.ExecutionContext
import tofu.internal.Interop
trait ScopedInstancesMacro:
/** make ScopedExecute instance with given tag using cats-effect2 hidden implicits are: Async[F], ContextShift[F]
*/
implicit inline def makeExecuteCE2[Tag, F[_]](p1: ExecutionContext): ScopedExecute[Tag, F] =
Interop.delegate0_1_p[Tag, F, ExecutionContext, ScopedExecute[Tag, F]]("tofu.interop.CE2Kernel.makeExecute", p1)
/** make ScopedExecute instance with given tag using cats-effect3 hidden implicit is Async[F]
*/
implicit inline def makeExecuteCE3[Tag, F[_]](p1: ExecutionContext): ScopedExecute[Tag, F] =
Interop.delegate0_1_p[Tag, F, ExecutionContext, ScopedExecute[Tag, F]]("tofu.interop.CE3Kernel.makeExecute", p1)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy