zio.FunctionToServiceBuilderOps
Converts this function to a ServiceBuilder that depends upon its inputs.
Converts this function to a ServiceBuilder that depends upon its inputs.
case class FooLive(config: Config) extends Foo val live: URServiceBuilder[Has[Config], Has[Foo]] = FooLive.toServiceBuilder
Converts this function to a Layer that depends upon its inputs.
Converts this function to a Layer that depends upon its inputs.
case class FooLive(config: Config) extends Foo val live: URLayer[Has[Config], Has[Foo]] = FooLive.toLayer
(Since version 2.0.0) use toServiceBuilder