code: async def close(self):
          
          conn = self._connection
          if conn is None:
              return
          try:
              while (await self.nextset()):
                  pass
          finally:
              self._connection = None
docs: Closing a cursor just exhausts all remaining data.