public void addTaskListener(GTaskListener listener) {
		lock.lock();
		try {
			if (taskListener == null) {
				taskListener = listener;
			}
			else {
				taskListener = new MulticastTaskListener(taskListener, listener);
			}
			listener.initialize();
		}
		finally {
			lock.unlock();
		}
	}
Adds a GTaskListener to be notified as tasks are completed.
@param listener the listener to add
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/GTaskManager.java