src/main/java/org/openjfx/core/ImageUtil.java
public static void safeJavaFxExecute(Consumer<Boolean> consumer) {
        Platform.runLater(() -> {
            consumer.accept(true);
        });
    }
/**
     * As we update UI while processing images, we need this to prevent children threads from updating main UI thread.
     * @param consumer
     */
As we update UI while processing images, we need this to prevent children threads from updating main UI thread.
@param consumer
As we update UI while processing images we need this to prevent children threads from updating main UI thread . @param consumer
public static void safeJavaFxExecute(Consumer<Boolean> consumer) {
        Platform.runLater(() -> {
            consumer.accept(true);
        });
    }
public static void safeJavaFxExecute ( Consumer < Boolean > consumer ) { Platform . runLater ( ( ) -> { consumer . accept ( true ) ; } ) ; }
As we update UI while processing images, we need this to prevent children threads from updating main UI thread.
As we update UI while processing images we need this to prevent children threads from updating main UI thread .