def wait(self, duration=None, count=0):
        start = time.time()
        total = 0
        while True:
            type, result = self._recv(MSG, PING, OK)
            if type is MSG:
                total += 1
                if self._handle_msg(result) is False:
                    break

                if count and total >= count:
                    break

            elif type is PING:
                self._handle_ping()

            if duration and time.time() - start > duration:
                break
Delete a Translation Resource in a specific project.
dataset/ETHPy150Open mcuadros/pynats/pynats/connection.py/Connection.wait--crossover with--dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/views.py/resource_delete