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

Method invokeInEdtAndWait

forge-gui-mobile/src/forge/GuiMobile.java:94–107  ·  view source on GitHub ↗
(final Runnable proc)

Source from the content-addressed store, hash-verified

92 }
93
94 @Override
95 public void invokeInEdtAndWait(final Runnable proc) {
96 if (isGuiThread()) {
97 proc.run();
98 }
99 else {
100 new WaitRunnable() {
101 @Override
102 public void run() {
103 proc.run();
104 }
105 }.invokeAndWait();
106 }
107 }
108
109 private volatile Thread glThread;
110

Callers

nothing calls this directly

Calls 3

isGuiThreadMethod · 0.95
runMethod · 0.65
invokeAndWaitMethod · 0.45

Tested by

no test coverage detected