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, with the current version being 2.32.0."],["The `ApiAsyncFunction` interface is a tool for asynchronous value transformation, similar to Guava's `AsyncFunction`, but designed to be shaded within this library."],["The interface includes an `apply` method that takes an input of type `I` and returns an `ApiFuture` of type `O`, allowing for asynchronous processing and derivation of values."],["The documentation provides links to a comprehensive list of various versions of the API, from 2.1.2 to the latest version 2.46.1."],["The `apply` method can throw exceptions, which will be treated as a failed Future, and parameter and return types are documented in tabular format."]]],[]]