@Override
	public void run() {

		while (hasTask()) {

			TaskMonitor tm = comp.showProgress(currentTask, currentDelay);
			currentTask.monitoredRun(tm);
		}
	}
Set the next task to run; does not affect a currently running task.
@param task the next task to run.
@param delay time in milliseconds to delay showing progress or activity.
Ghidra/Framework/Docking/src/main/java/docking/TaskScheduler.java