Package com.iizix

Interface WorkerTaskEnded<I,​P,​R>

  • All Known Subinterfaces:
    IVSActionProcessComplete
    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 WorkerTaskEnded<I,​P,​R>
    The WorkerTask ended callback interface.
    Author:
    Christopher Mindus
    • Method Detail

      • onTaskEnded

        void onTaskEnded​(WorkerTask<I,​P,​R> task)
        Called when the worker task has completed. To get the result, call task.getResult() or task.getException() depending on the task completion state. Note: this function is called also when a task is cancelled.
        Parameters:
        task - The task that has ended.