code: public void runPendingTasks() {
          try {
              loop.runTasks();
          } catch (Exception e) {
              recordException(e);
          }
  
          try {
              loop.runScheduledTasks();
          } catch (Exception e) {
              recordException(e);
          }
      }
docs: Run all tasks (which also includes scheduled tasks) that are pending in the {@link EventLoop}
  for this {@link Channel}