We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f59454 commit 31acbf1Copy full SHA for 31acbf1
1 file changed
richtextfx-demos/src/main/java/org/fxmisc/richtext/demo/JavaKeywordsAsyncDemo.java
@@ -93,6 +93,7 @@ public void start(Stage primaryStage) {
93
codeArea.setParagraphGraphicFactory(LineNumberFactory.get(codeArea));
94
Subscription cleanupWhenDone = codeArea.multiPlainChanges()
95
.successionEnds(Duration.ofMillis(500))
96
+ .retainLatestUntilLater(executor)
97
.supplyTask(this::computeHighlightingAsync)
98
.awaitLatest(codeArea.multiPlainChanges())
99
.filterMap(t -> {
0 commit comments