code: private boolean runDelegatedTasks(boolean inUnwrap) {
          if (delegatedTaskExecutor == ImmediateExecutor.INSTANCE || inEventLoop(delegatedTaskExecutor)) {
              // We should run the task directly in the EventExecutor thread and not offload at all.
              runAllDelegatedTasks(engine);
              return true;
          } else {
              executeDelegatedTasks(inUnwrap);
              return false;
          }
      }
docs: Will either run the delegated task directly calling {@link Runnable#run()} and return {@code true} or will
  offload the delegated task using {@link Executor#execute(Runnable)} and return {@code false}.
  
  If the task is offloaded it will take care to resume its work on the {@link EventExecutor} once there are no
  more tasks to process.