Interface ResultHandler<V>

  • Type Parameters:
    V - The type of result consumed by the handler.
    All Known Implementing Classes:
    PromiseImpl
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ResultHandler<V>
    A completion handler for consuming the results of asynchronous tasks.
    • Method Detail

      • handleResult

        void handleResult​(V result)
        Invoked when the asynchronous task has completed successfully.
        Parameters:
        result - The result of the asynchronous task.