bindFuture<R> method

  1. @monadComprehensions
Future<R> bindFuture<R>(
  1. Future<Either<L, R>> eitherFuture
)

Attempt to get right value of eitherFuture. Or return a Future that completes with a ControlError. This is a shorthand for eitherFuture.then(bind).

See Either.futureBinding.

Implementation

@monadComprehensions
Future<R> bindFuture<R>(Future<Either<L, R>> eitherFuture) =>
    eitherFuture.then(bind);