code: public void handlePending() {
  
          if (this.throttleEngine) {
  
              final TemplateFlowController controller = this.flowController;
  
              if (controller.stopProcessing) {
                  controller.processorTemplateHandlerPending = true;
                  return;
              }
  
              // Execution of pending tasks will be done from the last one to be stopped to the newest one, so that
              // all nested executions of the ProcessorTemplateHandler are correctly managed.
              while (this.pendingProcessingsSize > 0) {
                  final boolean processed = this.pendingProcessings[this.pendingProcessingsSize - 1].process();
                  if (!processed) {
                      // Couldn't finish -- we were stopped again. This handlePending() will need to be called
                      // again the next time the throttling mechanism is asked to produce more output.
                      controller.processorTemplateHandlerPending = true;
                      return;
                  }
                  this.pendingProcessingsSize--;
              }
  
              // All pending jobs finished
              controller.processorTemplateHandlerPending = false;
  
          }
  
      }
docs: <p>
  Handle any processing that might have been left pending during its execution because of the process having
  been stopped during throttling.
  </p>
  <p>
  This method is only for internal use, and will be called by the {@link org.thymeleaf.IThrottledTemplateProcessor}
  implementations before actually letting any new events flow in from the parser or cache.
  </p>