toTaskEither<L> method
Convert this IOOption to TaskEither.
If the value inside IOOption is None, then use onNone
to convert it
to a value of type L
.
Implementation
TaskEither<L, R> toTaskEither<L>(L Function() onNone) =>
TaskEither(() async => Either.fromOption(run(), onNone));