It is similar to Guava's AsyncFunction, redeclared so that Guava can be shaded.
Type Parameters
Name
Description
I
O
Methods
apply(I input)
publicabstractApiFuture<O>apply(Iinput)
Returns an output 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The provided content is a documentation page for the `ApiAsyncFunction` interface in the Google API Common library for Java, showcasing various versions of the API."],["`ApiAsyncFunction` is an interface similar to Guava's `AsyncFunction`, designed for asynchronous value transformation."],["The latest version of the documentation is for version 2.46.1, and there is a range of documented versions going back to version 2.1.2, with version 2.20.0 as the current context."],["The interface's `apply(I input)` method takes an input and returns an `ApiFuture` that represents an asynchronous operation and can potentially throw an exception."]]],[]]