public static <E,T> FutureResult<E,T> ofCompletableFuture(CompletableFuture<Result<E,T>> run)
public static <E,T> FutureResult<E,T> ofFuture(Future<T> run, java.util.function.Function<Exception,E> f)
public static <E,T> FutureResult<E,T> ofFutureResult(Future<Result<E,T>> future, java.util.function.Function<Exception,E> f)
public static <E,T> FutureResult<E,T> ofResult(Result<E,T> result)
public static <E,T> FutureResult<E,T> ofSupplier(java.util.function.Supplier<Result<E,T>> supplier)
public static <E,T> FutureResult<E,T> of(T t)
@SafeVarargs public static <E,T> FutureResult<E,T> fail(E error, E... errors)
public static <E,T> FutureResult<E,T> fail(NonEmptyList<E> errors)
public Result<E,T> getOrElse(java.util.function.Supplier<Result<E,T>> resultSupplier, java.util.function.Function<Exception,E> f)
public CompletableFuture<Result<E,T>> future()
public <R> FutureResult<E,R> map(java.util.function.Function<T,R> f)
public <F> FutureResult<F,T> errorMap(java.util.function.Function<E,F> f)
public <R> CompletableFuture<R> fold(java.util.function.Function<NonEmptyList<E>,R> e, java.util.function.Function<T,R> f)
public <R> FutureResult<E,R> flatMap(java.util.function.Function<T,FutureResult<E,R>> f)
Copyright © 2019. All rights reserved.