IOEither<L, R>.leftIO constructor

IOEither<L, R>.leftIO(
  1. IO<L> io
)

Build a IOEither that returns a Left containing the result of running io.

Implementation

factory IOEither.leftIO(IO<L> io) => IOEither(() => Either.left(io.run()));