docs: public HttpServerExchange dispatch(final Executor executor, final Runnable runnable) {
          if (isInCall()) {
              if (executor != null) {
                  this.dispatchExecutor = executor;
              }
              state |= FLAG_DISPATCHED;
              if(anyAreSet(state, FLAG_SHOULD_RESUME_READS | FLAG_SHOULD_RESUME_WRITES)) {
                  throw UndertowMessages.MESSAGES.resumedAndDispatched();
              }
              this.dispatchTask = runnable;
          } else {
              if (executor == null) {
                  getConnection().getWorker().execute(runnable);
              } else {
                  executor.execute(runnable);
              }
          }
          return this;
      }