toIOEither<L> method

IOEither<L, R> toIOEither<L>(
  1. L onNone()
)

Convert this IOOption to IOEither.

If the value inside IOOption is None, then use onNone to convert it to a value of type L.

Implementation

IOEither<L, R> toIOEither<L>(L Function() onNone) =>
    IOEither(() => Either.fromOption(run(), onNone));