protected void launchTaskFromSwing(Task task) {

		runSwing(() -> {
			taskLauncherSpy = new TaskLauncherSpy(task);
			postEvent("After task launcher");
			threadsFinished.countDown();
		});
	}
Launches the task and waits until the dialog is shown
@param task the task to launch
Ghidra/Framework/Docking/src/test/java/ghidra/util/task/AbstractTaskTest.java