MCPcopy Create free account
hub / github.com/PCGen/pcgen / runOnJavaFXThreadNow

Method runOnJavaFXThreadNow

code/src/java/pcgen/gui3/GuiUtility.java:54–58  ·  view source on GitHub ↗
(Supplier<T> supplier)

Source from the content-addressed store, hash-verified

52 }
53
54 public static <T> T runOnJavaFXThreadNow(Supplier<T> supplier)
55 {
56 GuiAssertions.assertIsNotJavaFXThread();
57 return CompletableFuture.supplyAsync(supplier, Platform::runLater).join();
58 }
59}

Callers 15

showSavePartyChooserMethod · 0.95
showOpenPartyChooserMethod · 0.95
showWarningConfirmMethod · 0.95
showErrorMessageMethod · 0.95
showInfoMessageMethod · 0.95
showWarningMessageMethod · 0.95
showInputDialogMethod · 0.95
showLicenseDialogMethod · 0.95
showMatureDialogMethod · 0.95
viewInBrowserMethod · 0.95

Calls 2

joinMethod · 0.80

Tested by

no test coverage detected