We will wrap up this chapter by integrating most of what we learned and achieve a complex task: grouping keystrokes that happen in rapid succession to form strings without any delay! It can be helpful in user interfaces to immediately "jump" to items in a list based on what is being typed or perform auto-completion in some way. This can be a challenging task, but as we will see, it is not that difficult with RxJava.
This exercise will use JavaFX again with RxJavaFX. Our user interface will simply have a Label that receives rolling concatenations of keys we are typing. But after 300 milliseconds, it will reset and receive an empty "" to clear it. Here is the code that achieves this as well as some screenshots with the console output when I type "Hello" and then type "World" a moment later:
import io.reactivex.Observable...