Package qupath.lib.plugins
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 SummaryModifier and TypeMethodDescriptionbooleanQuery if the plugin can be cancelled while running.voidrunTasks(String message, Collection<? extends Runnable> tasks) Pass a collection of parallelizable tasks to run.default voidrunTasks(Collection<? extends Runnable> tasks) Pass a collection of parallelizable tasks to run.
- 
Method Details- 
isCancelledboolean isCancelled()Query if the plugin can be cancelled while running. Plugins are expected to check this flag before time-consuming operations.- Returns:
 
- 
runTasksPass a collection of parallelizable tasks to run.- Parameters:
- tasks- the tasks to run. If these are instances of- PathTaskthen an optional postprocessing may be applied after all tasks are complete.
 
- 
runTasksPass a collection of parallelizable tasks to run.- Parameters:
- message- optional message to display to the user when running tasks; may be null
- tasks- the tasks to run. If these are instances of- PathTaskthen an optional postprocessing may be applied after all tasks are complete.
- Since:
- v0.6.0
 
 
-