public static void waitFor(CountDownLatch latch) {
		try {
			if (!latch.await(DEFAULT_WAIT_TIMEOUT, TimeUnit.MILLISECONDS)) {
				throw new AssertionFailedError("Timed-out waiting for CountDownLatch");
			}
		}
		catch (InterruptedException e) {
			fail("Interrupted waiting for CountDownLatch");
		}
	}
Waits for the given latch to be counted-down

@param latch the latch to await
@throws AssertionFailedError if the condition is not met within the timeout period
Ghidra/Framework/Generic/src/main/java/generic/test/AbstractGTest.java