|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Beta public interface AsyncFunction<I,O>
Transforms a value, possibly asynchronously. For an example usage and more
information, see Futures.transform(ListenableFuture, AsyncFunction).
| Method Summary | |
|---|---|
ListenableFuture<O> |
apply(I input)
Returns an output Future to use in place of the given input. |
| Method Detail |
|---|
ListenableFuture<O> apply(I input)
throws Exception
Future to use in place of the given input. The output Future need not be done, making AsyncFunction suitable for asynchronous derivations.
Throwing an exception from this method is equivalent to returning a
failing Future.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||