synchronized void set(Task task, int delay) {
		scheduledTask = task;
		scheduledDelay = delay;
		if (taskThread == null) {
			taskThread = new Thread(this, "Dialog Task Thread: " + comp.getTitle());
			taskThread.setPriority(Thread.MIN_PRIORITY);
			taskThread.start();
		}
	}
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