public boolean waitWhileBusy(long timeoutMillis) {
		lock.lock();
		try {
			while (isBusy()) {
				try {
					return notBusy.await(timeoutMillis, TimeUnit.MILLISECONDS);
				}
				catch (InterruptedException e) {
					// ignore and loop
				}
			}
		}
		finally {
			lock.unlock();
		}
		return true;
	}
Returns true if this manager is running a task, or if suspended has additional tasks queued.
@return  true if this manager is running a task, or if suspended has additional tasks queued.
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/GTaskManager.java