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-03-21 UTC."],[[["The latest version of `ApiAsyncFunction` is 2.46.1, and numerous other versions are available, ranging down to version 2.1.2."],["`ApiAsyncFunction` is a Java interface used for transforming a value, potentially asynchronously, similar to Guava's `AsyncFunction`."],["The interface defines a method `apply(I input)` which takes an input of type `I` and returns an `ApiFuture` of type `O`."],["The `apply` method can throw an exception, which is equivalent to returning a failing `Future`."],["`ApiAsyncFunction`'s `apply` method's output Future does not need to be completed when it is returned, allowing for asynchronous operations."]]],[]]