MCPcopy Create free account
hub / github.com/Card-Forge/forge / delayInEDT

Method delayInEDT

forge-gui/src/main/java/forge/gui/FThreads.java:65–68  ·  view source on GitHub ↗
(final int milliseconds, final Runnable inputUpdater)

Source from the content-addressed store, hash-verified

63 }
64
65 public static void delayInEDT(final int milliseconds, final Runnable inputUpdater) {
66 final Runnable runInEdt = () -> FThreads.invokeInEdtNowOrLater(inputUpdater);
67 ThreadUtil.delay(milliseconds, runInEdt);
68 }
69
70 public static String debugGetCurrThreadId() {
71 return isGuiThread() ? "EDT" : Thread.currentThread().getName();

Callers 6

enterMethod · 0.95
changeSkinMethod · 0.95
showMenuMethod · 0.95
startPlaybackMethod · 0.95
continuePlaybackMethod · 0.95
startGameMethod · 0.95

Calls 2

invokeInEdtNowOrLaterMethod · 0.95
delayMethod · 0.95

Tested by

no test coverage detected