Created
November 12, 2013 15:29
-
-
Save svenreimers/7432763 to your computer and use it in GitHub Desktop.
Shortened Lambda version of code seen at https://bitbucket.org/datafx/datafx/src/5468f2e7cd07ef6d400f7473fc19b92daf13b7dc/datafx-core/src/main/java/org/datafx/concurrent/StreamFX.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void forEachOrdered(final Consumer<ObjectProperty<? super T>> action) { | |
stream.forEachOrdered((t) -> Platform.runLater(() -> action.accept(new SimpleObjectProperty<>(t)))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool :)