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 webpage provides documentation for the `ApiAsyncFunction` interface within the Google API Common library for Java, which is currently at version 2.31.1."],["The `ApiAsyncFunction` interface is used for transforming a value, potentially asynchronously, and is similar to Guava's `AsyncFunction`."],["The interface has a single method, `apply(I input)`, which takes an input of type `I` and returns an `ApiFuture` of type `O`, allowing for asynchronous processing."],["The page contains various previous versions of the `ApiAsyncFunction` with links to their respective documentations ranging from version 2.1.2 up to the latest version of 2.46.1."],["Exceptions can be thrown from the method, and the effect of this is equal to returning a failing future."]]],[]]