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 latest version of the API common library is 2.46.1, while the currently documented version is 2.25.0."],["This page provides access to the documentation for `com.google.api.core.ApiAsyncFunction` across numerous versions, ranging from 2.1.2 up to the latest."],["`ApiAsyncFunction` is an interface used for transforming a value, possibly asynchronously, similar to Guava's `AsyncFunction`."],["The `apply(I input)` method within `ApiAsyncFunction` returns an output `ApiFuture` that can replace the input, and this method can throw exceptions, equivalent to returning a failing `Future`."],["`ApiAsyncFunction` includes two type parameters, `I` for the input and `O` for the output."]]],[]]