code: private boolean isEventLoopActive() {
  
          EventExecutorGroup eventExecutors = clientResources.eventExecutorGroup();
          if (eventExecutors.isShuttingDown() || eventExecutors.isShutdown() || eventExecutors.isTerminated()) {
              return false;
          }
  
          return true;
      }
docs: Check if the {@link EventExecutorGroup} is active
  
  @return false if the worker pool is terminating, shutdown or terminated