(self, timeout=None)
return resp
Waits for the response to the last issued query.

        :arg timeout:
            The maximum number of seconds waited for the query response.
        :type timeout:
            None or int

        :raises TS3TimeoutError:
        :raises TS3ResponseRecvError:
        :raises TS3QueryError:
Waits for the response to the last issued query.
Waits for the response to the last issued query .
def _wait_for_resp(self, timeout=None):
        """
        Waits for the response to the last issued query.

        :arg timeout:
            The maximum number of seconds waited for the query response.
        :type timeout:
            None or int

        :raises TS3TimeoutError:
        :raises TS3ResponseRecvError:
        :raises TS3QueryError:
        """
        assert self._num_pending_queries

        start_time = time.time()
        resp = None
        while not (isinstance(resp, TS3QueryResponse) and self._num_pending_queries == 0):

            if timeout is not None:
                remaining_time = timeout - (time.time() - start_time)
                if remaining_time <= 0:
                    raise TS3TimeoutError()
            else:
                remaining_time = None

            resp = self._recv(timeout=remaining_time)

        if resp.error["id"] != "0":
            raise TS3QueryError(resp)
        return resp
def _wait_for_resp ( self , timeout = None ) : assert self . _num_pending_queries start_time = time . time ( ) resp = None while not ( isinstance ( resp , TS3QueryResponse ) and self . _num_pending_queries == 0 ) : if timeout is not None : remaining_time = timeout - ( time . time ( ) - start_time ) if remaining_time <= 0 : raise TS3TimeoutError ( ) else : remaining_time = None resp = self . _recv ( timeout = remaining_time ) if resp . error [ "id" ] != "0" : raise TS3QueryError ( resp ) return resp