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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThe content provides documentation for the \u003ccode\u003eApiAsyncFunction\u003c/code\u003e interface within the Google API Core library for Java, with the latest version being 2.46.1.\u003c/p\u003e\n"],["\u003cp\u003eThis interface, \u003ccode\u003eApiAsyncFunction<I,O>\u003c/code\u003e, is designed for transforming values, potentially asynchronously, akin to Guava's \u003ccode\u003eAsyncFunction\u003c/code\u003e but adapted for shaded environments.\u003c/p\u003e\n"],["\u003cp\u003eThe primary method within this interface is \u003ccode\u003eapply(I input)\u003c/code\u003e, which takes an input and returns an \u003ccode\u003eApiFuture<O>\u003c/code\u003e representing the transformed output, allowing for asynchronous operations.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a comprehensive list of versions, starting from 2.46.1 all the way down to 2.1.2, with version 2.36.0 being shown as the currently selected version, and provides links to each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eapply\u003c/code\u003e method parameters include an \u003ccode\u003einput\u003c/code\u003e of type I and the method can throw an exception as well as returning an \u003ccode\u003eApiFuture<O>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]