orElse<A> function

TaskOption<A> Function(TaskOption<A> taskOption) orElse<A>(
  1. TaskOption<A> task
)

A variant of alt, which accepts the replacement TaskOption directly.

Implementation

TaskOption<A> Function(TaskOption<A> taskOption) orElse<A>(
  TaskOption<A> task,
) =>
    alt(() => task);