TaskEither<A, B> class
sealed
TaskEither
is a representation of asynchronous computations that can fail.
It's a way of combining the concepts of Future
and Either
.
Example:
final myTaskEither = TaskEither(() => Future.value(Right<String, int>(42)));
Constructors
-
TaskEither(Future<
Either< value())A, B> > -
Factory constructor to create a TaskEither from a computation.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited