Interface AsyncFunction<I extends @Nullable java.lang.Object,​O extends @Nullable java.lang.Object>

    • Method Detail

      • apply

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