While reading about ZIO-config in 2.0.4, the following pattern to create services caught my eye. I am copying it here for easy lookup. Enjoy.
val myLayer: ZLayer[PaymentRepo, Nothing, MyService] =
ZLayer.scoped {
for {
repo
While reading about ZIO-config in 2.0.4, the following pattern to create services caught my eye. I am copying it here for easy lookup. Enjoy.
val myLayer: ZLayer[PaymentRepo, Nothing, MyService] =
ZLayer.scoped {
for {
repo