code: def abort(self, err):
          
          if _debug: IOQController._debug("abort %r", err)
  
          if (self.state == CTRL_IDLE):
              if _debug: IOQController._debug("    - idle")
              return
  
          while True:
              iocb = self.ioQueue.get(block=0)
              if not iocb:
                  break
              if _debug: IOQController._debug("    - iocb: %r", iocb)
  
              # change the state
              iocb.ioState = ABORTED
              iocb.ioError = err
  
              # notify the client
              iocb.trigger()
  
          if (self.state != CTRL_IDLE):
              if _debug: IOQController._debug("    - busy after aborts")
docs: Abort all pending requests.