Relative Content

Tag Archive for scalazio

How can I combine N different ZIO-Streams?

I’ve been exploring ZIO Streams and ZIO’s concurrency model for a while. Recently, I started working on a toy project where I process a large file containing integers. Here’s what I’ve done so far:

Pattern matching in creating ZLayers

I have a question about ZLayers.
In my app i want to have possibility of connecting to different types of databases. So i want to be able to create connection pool differently.
How should i write it? Let’s say i have:

ZIO: union 3 Console effects

I’m trying to realise effect, which consequently union 3 effects: print to console, read this value and then print this value to console.