This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JavaFX and the fly likes JavaFX equivalent of thread.join? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFX equivalent of thread.join?" Watch "JavaFX equivalent of thread.join?" New topic

JavaFX equivalent of thread.join?

L Purcell

Joined: Feb 19, 2012
Posts: 12
I need to wait a limited amount of time for a Service/Task to complete before declaring it unsuccessful and cancelling it (essentially a timeout).
I'm new to FX (and Java, really), though I have gotten a Service and Task to work as well as .setOnSucceeded, etc. I can't figure out, though, how to limit the time for the Service/Task to run.
In Java the thread.join() method would seem to do it, but in FX I don't seem to have direct access to the thread(?). Help? Thanks! L
It is sorta covered in the JavaRanch Style Guide.
subject: JavaFX equivalent of thread.join?
It's not a secret anymore!