/** * Declare that the future is finished. * This method is only called for intermediate futures, * i.e. when this method is called it is guaranteed that the * intermediateResultAvailable method was called for all * intermediate results before. */ public void finishedIfUndone() { this.undone = true; finished(); }