Interface AsyncFunction<I,​O>


  • @Deprecated(since="2022-12-01")
    public interface AsyncFunction<I,​O>
    Deprecated.
    The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
    Transforms a value, possibly asynchronously. For an example usage and more information, see Futures.transform(ListenableFuture, AsyncFunction).
    Since:
    11.0
    • Method Detail

      • apply

        ListenableFuture<O> apply​(I input)
                           throws java.lang.Exception
        Deprecated.
        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.

        Throws:
        java.lang.Exception