SpecVersionSpecific
Value members
Concrete methods
Deprecated methods
@deprecated("use provide", "2.0.2")
Automatically constructs the part of the environment that is not part of the
TestEnvironment, leaving an effect that only depends on the TestEnvironment.
This will also satisfy transitive TestEnvironment requirements with
TestEnvironment.any, allowing them to be provided later.
Automatically constructs the part of the environment that is not part of the
TestEnvironment, leaving an effect that only depends on the TestEnvironment.
This will also satisfy transitive TestEnvironment requirements with
TestEnvironment.any, allowing them to be provided later.
val zio: ZIO[OldLady with Console, Nothing, Unit] = ???
val oldLadyLayer: ZLayer[Fly, Nothing, OldLady] = ???
val flyLayer: ZLayer[Blocking, Nothing, Fly] = ???
// The TestEnvironment you use later will provide both Blocking to flyLayer and
// Console to zio
val zio2 : ZIO[TestEnvironment, Nothing, Unit] =
zio.provideCustom(oldLadyLayer, flyLayer)
- Deprecated