© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. SpäthFrontend Development with JavaFX and Kotlinhttps://doi.org/10.1007/978-1-4842-9717-9_9

9. Concurrency

Peter Späth1  
(1)
Leipzig, Germany
 

For a good user experience mark, you are well advised to immediately react on any user input. For example, if you run a snippet with a button and text field bound together like shown here:

the UI freezes for five seconds after you click the button, making it irresponsive to any user input. Apart from the quick and dirty remedy

for background execution, there are other, presumably better, ways to handle concurrency, ...

Get Frontend Development with JavaFX and Kotlin: Build State-of-the-Art Kotlin GUI Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.