toIOEither<L> method
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));