private synchronized boolean hasTask() {
		if (scheduledTask == null) {
			taskThread = null;
			currentTask = null;
			return false;
		}
		currentTask = scheduledTask;
		currentDelay = scheduledDelay;
		scheduledTask = null;
		return true;
	}
Return true if there is another task scheduled to run.
Ghidra/Framework/Docking/src/main/java/docking/TaskScheduler.java