TaskEither<L, R>.rightTask constructor
TaskEither<L, R>.rightTask (
- Task<
R> task
Build a TaskEither that returns a Right containing the result of running task
.
Same of TaskEither.fromTask
Implementation
factory TaskEither.rightTask(Task<R> task) =>
TaskEither(() async => Right(await task.run()));