A
- the future parameter typepublic final class Compose<A> extends Object implements SemigroupFactory<Semigroup<A>,CompletableFuture<A>>
Semigroup
instance formed by CompletableFuture
<A>
and a semigroup over
A
. If either CompletableFuture
s completes exceptionally, the result is also an exceptionally
completed future.
Note that this operation only takes as long as the slowest future to complete.
Modifier and Type | Method and Description |
---|---|
Semigroup<CompletableFuture<A>> |
checkedApply(Semigroup<A> aSemigroup)
Invoke this function with the given argument, potentially throwing any
Throwable . |
static <A> Compose<A> |
compose() |
static <A> Semigroup<CompletableFuture<A>> |
compose(Semigroup<A> aSemigroup) |
static <A> Fn1<CompletableFuture<A>,CompletableFuture<A>> |
compose(Semigroup<A> aSemigroup,
CompletableFuture<A> x) |
static <A> CompletableFuture<A> |
compose(Semigroup<A> aSemigroup,
CompletableFuture<A> x,
CompletableFuture<A> y) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, checkedApply
apply, apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
curried, curry, fn2, fromBiFunction, toBiFunction
public Semigroup<CompletableFuture<A>> checkedApply(Semigroup<A> aSemigroup)
Fn2
Throwable
.checkedApply
in interface Fn1<Semigroup<A>,Fn1<CompletableFuture<A>,Fn1<CompletableFuture<A>,CompletableFuture<A>>>>
checkedApply
in interface Fn2<Semigroup<A>,CompletableFuture<A>,Fn1<CompletableFuture<A>,CompletableFuture<A>>>
checkedApply
in interface SemigroupFactory<Semigroup<A>,CompletableFuture<A>>
aSemigroup
- the argumentpublic static <A> Compose<A> compose()
public static <A> Semigroup<CompletableFuture<A>> compose(Semigroup<A> aSemigroup)
public static <A> Fn1<CompletableFuture<A>,CompletableFuture<A>> compose(Semigroup<A> aSemigroup, CompletableFuture<A> x)
public static <A> CompletableFuture<A> compose(Semigroup<A> aSemigroup, CompletableFuture<A> x, CompletableFuture<A> y)