ReaderTaskEither<E, L, R>.fromIO constructor

ReaderTaskEither<E, L, R>.fromIO(
  1. IO<R> io
)

Build a ReaderTaskEither that returns a Right containing the result of running io.

Implementation

factory ReaderTaskEither.fromIO(IO<R> io) => ReaderTaskEither(
      (_) async => Right(io.run()),
    );