public void done(){
synchronized (myTasks) {
    myTasks.remove(myTasks.size() - 1);
    myTasks.notifyAll();
  }
}

public void done ( ) { synchronized ( myTasks ) { myTasks . remove ( myTasks . size ( ) - 1 ) ; myTasks . notifyAll ( ) ; } }
notify that a progress task has finished .
