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-07-01 UTC."],[[["The provided content is a documentation page for the `ApiAsyncFunction` interface within the Google API Common library for Java, showcasing various versions of the API."],["Version 2.46.1 is identified as the latest release for `ApiAsyncFunction`, with older versions available ranging from 2.45.0 to 2.1.2."],["The `ApiAsyncFunction` interface is designed for transforming a value, potentially asynchronously, similar in function to Guava's `AsyncFunction` but implemented independently to avoid dependencies."],["The core method of this interface is `apply(I input)`, which takes an input of type `I` and returns an `ApiFuture\u003cO\u003e`, representing the transformed output that may be resolved asynchronously."],["The documentation provides a clear description, type parameters, method details, return type, and the exceptions that could occur, ensuring developers have a strong grasp of how this feature works."]]],[]]