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."],[[["This webpage provides documentation for the `ApiAsyncFunction` interface within the `com.google.api.core` package, specifically for the Java programming language."],["The latest version of the `ApiAsyncFunction` API is 2.46.1, with a range of prior versions listed, from 2.45.0 down to 2.1.2, all of which can be accessed."],["`ApiAsyncFunction` is designed to transform a value, potentially asynchronously, and is similar to Guava's `AsyncFunction`."],["The `apply(I input)` method is the primary method of this interface, which returns an `ApiFuture` that can be used as a replacement for the provided input, handling potential exceptions."],["The `ApiAsyncFunction` interface defines two type parameters, `I` and `O`, that represent the input and output types, respectively, in transformations."]]],[]]