- 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,O>Transforms a value, possibly asynchronously. For an example usage and more information, see
Futures.transformAsync(ListenableFuture, AsyncFunction, Executor).
- Chris Povirk
applyReturns an output
Futureto use in place of the given
input. The output
Futureneed not be done, making
AsyncFunctionsuitable for asynchronous derivations.
Throwing an exception from this method is equivalent to returning a failing