code: public void schedulePendingAdds() {
          ArrayList<Actor> newOnes = new ArrayList<>();
          Actor a;
          while ( (a=toAdd.poll()) != null ) {
              newOnes.add(a);
          }
          if ( newOnes.size() > 0 ) {
              Actor newQueue[] = new Actor[newOnes.size()+actors.length];
              System.arraycopy(actors,0,newQueue,0,actors.length);
              for (int i = 0; i < newOnes.size(); i++) {
                  Actor actor = newOnes.get(i);
                  newQueue[actors.length+i] = actor;
              }
              actors = newQueue;
          }
  
      }
docs: add actors which have been marked to be scheduled on this