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 provided content outlines the different versions of `ApiAsyncFunction`, ranging from the latest version 2.46.1 down to 2.1.2, all within the Java API common library."],["`ApiAsyncFunction` is an interface that allows for the asynchronous transformation of a value, similar to Guava's `AsyncFunction`."],["The `apply(I input)` method within the `ApiAsyncFunction` interface transforms an input `I` into an output `ApiFuture\u003cO\u003e`, which may not be immediately available."],["The `apply` method can throw an exception, which is equivalent to returning a failing Future."],["The content is about a Java API related to the common Google Api core."]]],[]]