@Override
	public void pause() {

		if (isCancelled()) {
			return; // no pausing after cancelled
		}

		notifyStepReady();

		synchronized (this) {

			try {
				wait(stepTime);
			}
			catch (InterruptedException e) {
				Msg.debug(this, "Interrupted waiting for next step", e);
			}

		}
	}
Stepping task monitor that will proceed to the next step after the specified delay
Ghidra/Framework/Graph/src/test/java/ghidra/graph/algo/viewer/AlgorithmSelfSteppingTaskMonitor.java