public interface ApiAsyncFunction<F,T>
It is similar to Guava's AsyncFunction
, redeclared so that Guava can be shaded.
Modifier and Type | Method and Description |
---|---|
ApiFuture<T> |
apply(F input)
Returns an output Future to use in place of the given input.
|
ApiFuture<T> apply(F input) throws Exception
Throwing an exception from this method is equivalent to returning a failing Future.
Exception