code: @Override
      public boolean remove(Runnable task) {
          checkTaskType(task);
          IoEvent event = (IoEvent) task;
          IoSession session = event.getSession();
          SessionTasksQueue sessionTasksQueue = (SessionTasksQueue)session.getAttribute( TASKS_QUEUE );
          Queue<Runnable> tasksQueue = sessionTasksQueue.tasksQueue;
          
          if (sessionTasksQueue == null) {
              return false;
          }
  
          boolean removed;
          
          synchronized (tasksQueue) {
              removed = tasksQueue.remove(task);
          }
  
          if (removed) {
              getQueueHandler().polled(this, event);
          }
  
          return removed;
      }
docs: {@inheritDoc}