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 in the Google API Common library for Java, specifically version 2.17.1."],["This interface, `ApiAsyncFunction\u003cI, O\u003e`, is used for transforming a value, potentially asynchronously, and is a replacement for Guava's `AsyncFunction`."],["The `apply(I input)` method is the core function, returning an `ApiFuture\u003cO\u003e` that may be asynchronous, and if an exception is thrown, it will be equivalent to returning a failed `Future`."],["The latest version of the package covered is 2.46.1, with a listing of all previous versions all the way down to version 2.1.2."],["The parameters for the `apply` function are `input` of type `I`, and the return is type `ApiFuture` with the generic type `O`, which may also throw an `Exception`."]]],[]]