public void setMonitor(TaskMonitor monitor, boolean cancelClearsAllItems) {
		if (monitorAdapter != null) {
			monitorAdapter.dispose();
		}
		if (monitor != null) {
			monitorAdapter = new QMonitorAdapter(monitor, cancelClearsAllItems);
		}
	}
Sets the monitor to use with this queue.

@param monitor the monitor to attache to this queue
@param cancelClearsAllItems if true, cancelling the monitor will cancel all items currently
								being processed by a thread and clear the scheduled
								items that haven't yet run.
								If false, only the items currently being processed will be cancelled.
Ghidra/Framework/Generic/src/main/java/generic/concurrent/ConcurrentQ.java