implicit final class MakeFromZIOZEnv[T, AfterBind] extends AnyVal
- Alphabetic
- By Inheritance
- MakeFromZIOZEnv
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new MakeFromZIOZEnv(dsl: MakeDSLBase[T, AfterBind])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val dsl: MakeDSLBase[T, AfterBind]
- Attributes
- protected
- def fromZEnvResource[R, E, I <: T](function: Functoid[Lifecycle[[γ$3$]ZIO[R, E, γ$3$], I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
Bind to a Lifecycle value which has a ZIO effect type that specifies dependencies via zio environment
Bind to a Lifecycle value which has a ZIO effect type that specifies dependencies via zio environment
Warning: removes the precise subtype of Lifecycle because of
Lifecycle.map
: Integration checks mixed-in as a trait onto a Lifecycle value result here will be lost - def fromZEnvResource[R, E, I <: T](resource: Lifecycle[[γ$1$]ZIO[R, E, γ$1$], I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
Bind to a Lifecycle value which has a ZIO effect type that specifies dependencies via zio environment
Bind to a Lifecycle value which has a ZIO effect type that specifies dependencies via zio environment
Warning: removes the precise subtype of Lifecycle because of
Lifecycle.map
: Integration checks mixed-in as a trait onto a Lifecycle value result here will be lost - def fromZEnvResource[R1 <: Lifecycle[[+γ$0$]ZIO[Nothing, Any, γ$0$], T]](implicit arg0: ClassConstructor[R1], tag: ZIOEnvLifecycleTag[R1, T]): AfterBind
Bind to a Lifecycle class which has a ZIO effect type that specifies dependencies via zio environment, e.g.
Bind to a Lifecycle class which has a ZIO effect type that specifies dependencies via zio environment, e.g.
class IntLifecycle extends Lifecycle.OfZIO[Double, Nothing, Int]( for { double <- ZIO.service[Double] _ <- ZIO.acquireRelease(ZIO.unit)(_ => ZIO.succeed(println("Closed"))) } yield double.toInt ) val module = new ModuleDef { make[Int].fromZEnvLifecycle[IntLifecycle] make[Double].from(5.0) } Injector[Task]().produceRun(module) { (i: Int) => ZIO.succeed(println(i)) } // 5 // Closed
Warning: removes the precise subtype of Lifecycle because of
Lifecycle.map
: Integration checks mixed-in as a trait onto a Lifecycle value result here will be lost - def fromZIOEnv[R, E, I <: T](function: Functoid[ZIO[Scope with R, E, I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def fromZIOEnv[R, E, I <: T](effect: ZIO[Scope with R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def fromZLayerEnv[R, E, I <: T](function: Functoid[ZLayer[R, E, I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def fromZLayerEnv[R, E, I <: T](layer: ZLayer[R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def fromZManagedEnv[R, E, I <: T](function: Functoid[ZManaged[R, E, I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def fromZManagedEnv[R, E, I <: T](resource: ZManaged[R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any