- 
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
 @GwtCompatible @FunctionalInterface public interface AsyncFunction<I extends @Nullable java.lang.Object,O extends @Nullable java.lang.Object> Transforms a value, possibly asynchronously. For an example usage and more information, seeFutures.transformAsync(ListenableFuture, AsyncFunction, Executor).- Since:
- 11.0
- Author:
- Chris Povirk
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ListenableFuture<O>apply(I input)Returns an outputFutureto use in place of the giveninput.
 
- 
- 
- 
Method Detail- 
applyListenableFuture<O> apply(I input) throws java.lang.Exception Returns an outputFutureto use in place of the giveninput. The outputFutureneed not be done, makingAsyncFunctionsuitable for asynchronous derivations.Throwing an exception from this method is equivalent to returning a failing Future.- Throws:
- java.lang.Exception
 
 
- 
 
-