ZIO<R, E, A>.fail constructor
ZIO<R, E, A>.fail (
- E e
Create a ZIO that fails with e
.
Implementation
factory ZIO.fail(E e) => ZIO.fromEither(Either.left(e));
Create a ZIO that fails with e
.
factory ZIO.fail(E e) => ZIO.fromEither(Either.left(e));