Packages

implicit final class MakeFromZIOZEnv[T, AfterBind] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MakeFromZIOZEnv
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MakeFromZIOZEnv(dsl: MakeDSLBase[T, AfterBind])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val dsl: MakeDSLBase[T, AfterBind]
    Attributes
    protected
  6. 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

  7. 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

  8. 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

  9. 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
  10. def fromZIOEnv[R, E, I <: T](effect: ZIO[Scope with R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
  11. def fromZLayerEnv[R, E, I <: T](function: Functoid[ZLayer[R, E, I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
  12. def fromZLayerEnv[R, E, I <: T](layer: ZLayer[R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
  13. def fromZManagedEnv[R, E, I <: T](function: Functoid[ZManaged[R, E, I]])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
  14. def fromZManagedEnv[R, E, I <: T](resource: ZManaged[R, E, I])(implicit arg0: ZEnvConstructor[R], arg1: Tag[E], arg2: Tag[I]): AfterBind
  15. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped