public void dispose() {
		cancelAllTasks(true);
		if (threadPool.isPrivate()) {
			threadPool.shutdownNow();
		}

		lock.lock();
		try {
			resultList.clear();
		}
		finally {
			lock.unlock();
		}
	}
Cancels all running tasks and disposes of the internal thread pool if it is a private
pool.
Ghidra/Framework/Generic/src/main/java/generic/concurrent/ConcurrentQ.java