A threading question: I have a model (with properties) that is edited using an ItemViewModel. After calling commit, I'd like to store that object using a REST call. Of course that REST call should happen in a background thread. What is the best practice to get the values into the background thread without any issues?
I am looking at the source code of the github-browser and can't quite get it.
The "controller.GitHub#listIssues" method is called from runAsync{} but accesses properties of the UserModel which are JavaFX properties -> I think that might be problematic?