The ZIO Effect
ZIO[R,E,A].
What Is ZIO?
ZIO is a library for asynchronous, concurrent, resource-safe functional effects. The core type is ZIO[R, E, A] — a description of a workflow that, given an environment R, may fail with E or succeed with A.
The Three Type Parameters
Read ZIO[R, E, A] as a function R => Either[E, A] (asynchronously, with effects):
R— required environment / dependenciesE— error type if it failsA— value type if it succeeds