zio.FunctionToServiceBuilderOps
Converts this function to a ServiceBuilder.
Converts this function to a ServiceBuilder.
case class FooLive() extends Foo val live: UServiceBuilder[Has[Foo]] = FooLive.toServiceBuilder
Converts this function to a Layer.
Converts this function to a Layer.
case class FooLive() extends Foo val live: ULayer[Has[Foo]] = FooLive.toLayer
(Since version 2.0.0) use toServiceBuilder