private void giveTheTaskThreadAChanceToComplete(int delay) {

		int waitTime = Math.min(delay, MAX_DELAY);
		try {
			finished.await(waitTime, TimeUnit.MILLISECONDS);
		}
		catch (InterruptedException e) {
			Msg.debug(this, "Interrupted waiting for task '" + getTitle() + "'", e);
		}
	}
Returns true if this dialog was ever made visible
@return true if shown
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskDialog.java