Interface TaskRunner

All Known Implementing Classes:
AbstractTaskRunner, CommandLineTaskRunner, TaskRunnerFX

public interface TaskRunner
A minimal interface for a class capable of running tasks in parallel, giving feedback to the user.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Query if the plugin can be cancelled while running.
    void
    runTasks(Collection<? extends Runnable> tasks)
    Pass a collection of parallelizable tasks to run.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Query if the plugin can be cancelled while running. Plugins are expected to check this flag before time-consuming operations.
      Returns:
    • runTasks

      void runTasks(Collection<? extends Runnable> tasks)
      Pass a collection of parallelizable tasks to run.
      Parameters:
      tasks - the tasks to run. If these are instances of PathTask then an optional postprocessing may be applied after all tasks are complete.