code: public function clear()
      {
          while (!$this->queue->isEmpty()) {
              $this->queue->pop();
          }
  
          $this->queue = null;
      }
docs: Empty the resource pool - Release all connections