@Override
	public void awaitTermination() throws StopWaitingException {
		try {
			executor.awaitTermination(MAX_WAIT_FOR_PROCESSING_MIN, TimeUnit.MINUTES);
			if (dialog.isAnsweredNo()) {
				throw new StopWaitingException();
			}

			if (this.stopWaitingException != null) {
				throw this.stopWaitingException;
			}
		}
		catch (InterruptedException e) {
			// this is okay
		}
	}
This constructor is used to create the thread that will show the wait dialog
@param executor the internal executor that should have 2 threads
@param filePath the path to the file to check
@param period the interval to show the dialog
@param timeUnit the units for the period
Ghidra/Features/GhidraGo/src/main/java/ghidra/app/plugin/core/go/ipc/CheckForFileProcessedRunnable.java