private void clearAllJobs(boolean interruptRuningJob) {
		List<T> pendingJobs = concurrentQ.cancelAllTasks(interruptRuningJob);
		for (T job : pendingJobs) {
			job.cancel();
		}
	}
Clears any pending jobs and cancels any currently executing job.
<p>
<b>Warning: Calling this method may leave the program in a bad state.  Thus, it is
recommended that you only do so when you known that any job that could possibly be scheduled
does not manipulate sensitive parts of the program; for example, opening file handles that
should be closed before finishing.</b>
<p><b>
If you are unsure about whether your jobs handle interrupt correctly, then don't use this
method.
</b>
Ghidra/Framework/Generic/src/main/java/ghidra/util/worker/AbstractWorker.java