TaskEither<A, B> constructor

TaskEither<A, B>(
  1. Future<Either<A, B>> value(
      )
    )

    Factory constructor to create a TaskEither from a computation.

    Example:

    final computation = TaskEither(() => Future.value(Right<String, int>(5)));
    

    Implementation

    factory TaskEither(Future<e.Either<A, B>> Function() value) =
        _TaskEither<A, B>;