MCPcopy Create free account
hub / github.com/dorkbox/SystemTray / dispatch

Method dispatch

test-javaFx/dorkbox/JavaFxProvider.java:86–100  ·  view source on GitHub ↗
(final Runnable runnable)

Source from the content-addressed store, hash-verified

84 }
85
86 @Override
87 public
88 boolean dispatch(final Runnable runnable) {
89 // JavaFX only
90 if (isEventThread()) {
91 // Run directly on the JavaFX event thread
92 runnable.run();
93 }
94 else {
95 javafx.application.Platform.runLater(runnable);
96 }
97
98 // javaFX always manages the runnable
99 return true;
100 }
101}

Callers 1

doJavaFxStuffMethod · 0.45

Calls 3

isEventThreadMethod · 0.95
runLaterMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected