AsFutureEitherExtension<L extends Object, R> extension

Provide toFuture extension on Either.

on

Methods

toFuture() Future<R>
Convert this Either to a Future. If this is Right, the Future will complete with Right.value as its value. Otherwise, the result Future will complete with Left.value as its error.