Module com.spotify.futures
Package com.spotify.futures
Interface FuturesExtra.AsyncFunction2<Z,A,B>
-
- Enclosing class:
- FuturesExtra
public static interface FuturesExtra.AsyncFunction2<Z,A,B>Implementations of this interface is used inĀFuturesExtra.syncTransform2(com.google.common.util.concurrent.ListenableFuture<A>, com.google.common.util.concurrent.ListenableFuture<B>, com.spotify.futures.FuturesExtra.Function2<Z, ? super A, ? super B>, java.util.concurrent.Executor)to asynchronously transform two values into a return value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Z>apply(A a, B b)Create and return aListenableFuturethat will execute combining a and b into some sort of result.
-
-
-
Method Detail
-
apply
com.google.common.util.concurrent.ListenableFuture<Z> apply(A a, B b) throws java.lang.Exception
Create and return aListenableFuturethat will execute combining a and b into some sort of result.- Parameters:
a- the first input value.b- the second input value.- Returns:
- a ListenableFuture that will complete once the result of a and b is computed.
- Throws:
java.lang.Exception
-
-