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