Quantcast
Channel: Day to day stuff
Viewing all articles
Browse latest Browse all 53

ZIO service layer pattern

$
0
0

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

Viewing all articles
Browse latest Browse all 53

Latest Images

Trending Articles





Latest Images