ZIO<R, E, A> constructor

ZIO<R, E, A>(
  1. A f()
)

Create a synchronous ZIO from a function, returning a IO that can't fail.

Implementation

factory ZIO(A Function() f) => ZIO.from((ctx) => Either.right(f()));