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-17 UTC."],[[["This webpage provides documentation for the `ApiAsyncFunction` interface within the Google API Common library for Java, specifically detailing its purpose in transforming values, potentially asynchronously."],["The `ApiAsyncFunction` interface is analogous to Guava's `AsyncFunction`, but it has been redefined to support shading Guava."],["The `apply(I input)` method is central to the `ApiAsyncFunction` interface, and it takes an input of type `I` and returns an `ApiFuture` of type `O`, which represents the output."],["The documentation includes an extensive list of versions, starting from version 2.46.1 (latest) and going as far back as version 2.1.2, providing API documentation for each version."]]],[]]