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>) to asynchronously
transform two values into a return value.-
Method Summary
-
Method Details
-
apply
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:
Exception
-