class ExpiringSwingTimer extends GhidraSwingTimer {

	public static ExpiringSwingTimer runWhen(BooleanSupplier isReady,
			int expireMs,
			Runnable runnable) {

		// Note: we could let the client specify the period, but that would add an extra argument
		//       to this method. For now, just use something reasonable.
		int delay = 250;
		ExpiringSwingTimer timer =
			new ExpiringSwingTimer(delay, expireMs, isReady, runnable);
		timer.start();
		return timer;
	}

	public  ExpiringSwingTimer(int delay, int expireMs, BooleanSupplier isReady,
			Runnable runnable);

}