title: How can I make Task's updateMessage() instant?
body: <p>I'm using the <a href="http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html" rel="nofollow">Task class</a> from JavaFx's API to perform network operations. The class provides a progress system which seems perfectly adapted for this situation, allowing, for instance, to report the amount of files uploaded to the caller thread. To this end, I call <a href="http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html#updateMessage%28java.lang.String%29" rel="nofollow">updateMessage(x + "files uploaded")</a> every time a file has been successfully uploaded.</p>
  
  <p>The problem is that the only message that I ever receive is the last one, when every file has been uploaded. I guess this phenomenon is explained in some way by the Javadoc:</p>
  
  <blockquote>
    <p>Calls to updateMessage are coalesced and run later on the FX application thread, so calls to updateMessage, even from the FX Application thread, may not necessarily result in immediate updates to this property, and intermediate message values may be coalesced to save on event notifications.</p>
  </blockquote>
  
  <p>How can I make it report correctly every, or at least some of the messages? I tried to add some Thread.sleep(20) around it but it's not working. Any idea?</p>