orElse<TL> method
When this TaskOption returns a None then return the result of orElse
.
Otherwise return this TaskOption.
Implementation
TaskOption<R> orElse<TL>(TaskOption<R> Function() orElse) =>
TaskOption(() async => (await run()).match(
() => orElse().run(),
(r) => TaskOption<R>.some(r).run(),
));