@Override
  public synchronized boolean allTasksCompleted() {
    return cacheSize() == 0 && wrappedCollection.allTasksCompleted();
  }
@return True if all tasks have been removed and processed.
services/tasks/src/main/java/org/hyperledger/besu/services/tasks/CachingTaskCollection.java