title: How one can pause and/or stop javafx.concurrent.Task?
body: <p>Say, I've got a <code>javafx.concurrent.Task</code> nested into <code>Thread</code>, ie.:</p>
  
  <pre><code>Task task = new Task();
  Thread thread = new Thread(task);
  thread.start();
  </code></pre>
  
  <p>How can I in this situation pause and/or stop executing <code>task</code> nad resume its work?</p>