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-17 UTC."],[[["The latest version available is 2.46.1, but the current page is focused on version 2.42.1."],["This page documents the `ApiAsyncFunction` interface, part of the `com.google.api.core` package, which enables asynchronous value transformations."],["`ApiAsyncFunction`'s `apply` method takes an input `I` and returns an `ApiFuture\u003cO\u003e`, and is similar to the `AsyncFunction` from Guava."],["The `apply` method can handle exceptions by returning a failing Future or throwing an exception."],["There are 36 total versions of `ApiAsyncFunction` listed, ranging from version 2.1.2 to 2.46.1."]]],[]]