FutureEither<L, R> extension
Properties
-
isLeft
→ Future<
bool> -
Available on Future<
Represents the left side of Either class which by convention is a "Failure".Either< , provided by the FutureEither extensionL, R> >no setter -
isRight
→ Future<
bool> -
Available on Future<
Represents the right side of Either class which by convention is a "Success"Either< , provided by the FutureEither extensionL, R> >no setter
Methods
-
either<
TL, TR> (TL fnL(L left), TR fnR(R right)) → Future< Either< TL, TR> > -
Available on Future<
Transform values of Left and RightEither< , provided by the FutureEither extensionL, R> > -
fold<
T> (FutureOr< T> fnL(L left), FutureOr<T> fnR(R right)) → Future<T> -
Available on Future<
Fold Left and Right into the value of one typeEither< , provided by the FutureEither extensionL, R> > -
mapLeft<
TL> (FutureOr< TL> fnL(L left)) → Future<Either< TL, R> > -
Available on Future<
Transform value of LeftEither< , provided by the FutureEither extensionL, R> > -
mapRight<
TR> (FutureOr< TR> fnR(R right)) → Future<Either< L, TR> > -
Available on Future<
Transform value of RightEither< , provided by the FutureEither extensionL, R> > -
swap(
) → Future< Either< R, L> > -
Available on Future<
Swap Left and RightEither< , provided by the FutureEither extensionL, R> > -
thenLeft<
TL> (FutureOr< Either< fnL(L left)) → Future<TL, R> >Either< TL, R> > -
Available on Future<
Async transform value of Left when transformation may be finished with an RightEither< , provided by the FutureEither extensionL, R> > -
thenRight<
TR> (FutureOr< Either< fnR(R right)) → Future<L, TR> >Either< L, TR> > -
Available on Future<
Async transform value of Right when transformation may be finished with an errorEither< , provided by the FutureEither extensionL, R> >