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 webpage provides documentation for the `ApiAsyncFunction` interface within the Google API Common library for Java, with the latest version being 2.46.1."],["This interface, `ApiAsyncFunction\u003cI, O\u003e`, is used for transforming a value, potentially asynchronously, similar to Guava's `AsyncFunction` but designed to be used with shaded libraries."],["The `apply(I input)` method is the core of the `ApiAsyncFunction`, enabling users to define how an input `I` should be transformed into an asynchronous output `ApiFuture\u003cO\u003e`."],["The documentation includes a list of available versions of the `ApiAsyncFunction` class, ranging from version 2.1.2 up to the most recent version, 2.46.1, each with their own documentation."]]],[]]