Exemplo n.º 1
0
 /**
  * Cancels the task if it is not yet complete and removes it from the list of running tasks
  *
  * @param taskId The task to cancel/remove
  * @return
  */
 public void removeTask(SolaTask task) {
   if (task != null && !task.isDone()) {
     task.cancel(true);
   }
   tasks.remove(task.getId());
 }