Interface ProgressManager.ProgressAsyncHandler<T>

  • Type Parameters:
    T - The progress return type.
    Enclosing class:
    ProgressManager
    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 static interface ProgressManager.ProgressAsyncHandler<T>
    Interface for handling progress asynchronously setting a future value when completed..
    • Method Detail

      • handle

        void handle​(CompletableFuture<T> result,
                    Flow.Subscriber<Progress> progress)
        Handle progress in background and return value with future.
        Parameters:
        result - Completable future to mark task as completed or failed.
        progress - Flow for reporting progress.