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, repo: Repo) extends Foo val live: URServiceBuilder[Has[Config] with Has[Repo], 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, repo: Repo) extends Foo val live: URLayer[Has[Config] with Has[Repo], Has[Foo]] = FooLive.toLayer
(Since version 2.0.0) use toServiceBuilder